CBlock::WriteToDisk() properly checks ftell(3) for error return
CBlock::WriteToDisk() properly checks ftell(3) for error return

Rather than storing ftell(3)'s return value -- a long -- in an
unsigned int, we store and check a properly typed temp.  Then, assured a
non-negative value, we store in nBlockPosRet.

fsb4000/novacoin,gorgoy/novacoin,FuzzyBearBTC/Fuzzyshares,robvanmieghem/clams,gorgoy/novacoin,Ziftr/Peerunity,valorbit/valorbit-oss,som4paul/BolieC,sigmike/peercoin,ALEXIUMCOIN/alexium,IOCoin/DIONS,Kefkius/clams,Action-Committee/Spaceballz,ghostlander/Testcoin,jashandeep-sohi/ppcoin,okcashpro/okcash,shadowproject/shadow,5mil/Bolt,ya4-old-c-coder/yacoin,slimcoin-project/Slimcoin,CoinBlack/blackcoin,peerdb/cors,BlueMeanie/PeerShares,novacoin-project/novacoin,BeirdoMud/MudCoin,LanaCoin/lanacoin,LanaCoin/lanacoin,fsb4000/novacoin,Rimbit/Wallets,dopecoin-dev/DopeCoinGold,slimcoin-project/Slimcoin,penek/novacoin,TheSeven/ppcoin,palm12341/jnc,FuzzyBearBTC/Peerunity,fsb4000/novacoin,greencoin-dev/GreenCoinV2,CoinGame/BCEShadow,gades/novacoin,AquariusNetwork/ARCO,BlueMeanie/PeerShares,rat4/blackcoin,penek/novacoin,gfneto/Peershares,valorbit/valorbit,byncoin-project/byncoin,CoinGame/BCEShadowNet,iadix/iadixcoin,FuzzyBearBTC/peercoin,FuzzyBearBTC/Peershares,IOCoin/DIONS,daeMOn63/Peershares,IOCoin/iocoin,vectorcoindev/Vector,Magicking/neucoin,CoinGame/BCEShadow,byncoin-project/byncoin,GeopaymeEE/e-goldcoin,elambert2014/novacoin,MoMoneyMonetarism/ppcoin,CoinBlack/bitcoin,benzhi888/renminbi,pinkmagicdev/SwagBucks,shadowproject/shadow,elambert2014/novacoin,som4paul/BolieC,iadix/iadixcoin,IOCoin/iocoin,5mil/SuperTurboStake,nochowderforyou/clams,LanaCoin/lanacoin,FuzzyBearBTC/Peershares2,redfish64/nomiccoin,vizidrixfork/Peershares,VsyncCrypto/Vsync,Jheguy2/Mercury,stronghands/stronghands,greencoin-dev/GreenCoinV2,byncoin-project/byncoin,penek/novacoin,dopecoin-dev/DopeCoinGold,5mil/Bolt,SproutsEx/SproutsExtreme,ForceMajeure/BitPenny-Client,pocopoco/yacoin,elcrypto/Pulse,FuzzyBearBTC/Peershares2,peercoin/peercoin,benzhi888/renminbi,bitgrowchain/bitgrow,robvanmieghem/clams,penek/novacoin,benzhi888/renminbi,etercoin/etercoin,blackcoinhelp/blackcoin,BlueMeanie/PeerShares,AquariusNetwork/ARCO,FuzzyBearBTC/Peershares2,ghostlander/Testcoin,Ziftr/Peerunity,bitgrowchain/bitgrow,yacoin/yacoin,sigmike/peercoin,redfish64/nomiccoin,lateminer/DopeCoinGold,FuzzyBearBTC/Peershares2,DigitalPandacoin/pandacoin,CoinBlack/blackcoin,Peerunity/Peerunity,xranby/blackcoin,IOCoin/iocoin,stamhe/novacoin,AquariusNetwork/ARCOv2,FuzzyBearBTC/Peerunity,glv2/peerunity,Peerapps/ppcoin,penek/novacoin,senadj/yacoin,prodigal-son/blackcoin,Crypto-Currency/BitBar,stamhe/ppcoin,d5000/ppcoin,d5000/ppcoin,okcashpro/okcash,GeopaymeEE/e-goldcoin,Crypto-Currency/BitBar,FuzzyBearBTC/Peerunity,Whitecoin-org/Whitecoin,daeMOn63/Peershares,elambert2014/novacoin,phorensic/yacoin,snakie/ppcoin,sigmike/peercoin,lordsajan/erupee,CoinGame/BCEShadow,ghostlander/Orbitcoin,elambert2014/cbx2,som4paul/BolieC,IOCoin/DIONS,okcashpro/okcash,Kefkius/clams,ya4-old-c-coder/yacoin,lateminer/DopeCoinGold,thodg/ppcoin,MoMoneyMonetarism/ppcoin,Someguy123/novafoil,CoinGame/NuShadowNet,jashandeep-sohi/ppcoin,glv2/peerunity,internaut-me/ppcoin,senadj/yacoin,palm12341/jnc,elambert2014/novacoin,xranby/blackcoin,VsyncCrypto/Vsync,FuzzyBearBTC/peercoin,sproutcoin/sprouts,peerdb/cors,valorbit/valorbit-oss,Whitecoin-org/Whitecoin,valorbit/valorbit,thodg/ppcoin,dooglus/clams,5mil/Bolt,BeirdoMud/MudCoin,internaut-me/ppcoin,ghostlander/Testcoin,vizidrixfork/Peershares,FuzzyBearBTC/Peershares-1,NeuCoin/neucoin,daeMOn63/Peershares,MOIN/moin,Peershares/Peershares,Peershares/Peershares,AquariusNetwork/ARCOv2,MOIN/moin,yacoin/yacoin,effectsToCause/vericoin,GeopaymeEE/e-goldcoin,novacoin-project/novacoin,stamhe/novacoin,byncoin-project/byncoin,dopecoin-dev/DopeCoinGold,dooglus/clams,palm12341/jnc,elambert2014/cbx2,fsb4000/novacoin,novacoin-project/novacoin,jashandeep-sohi/ppcoin,valorbit/valorbit-oss,CoinBlack/blackcoin,jashandeep-sohi/ppcoin,daeMOn63/Peershares,stamhe/novacoin,peerdb/cors,Peershares/Peershares,pocopoco/yacoin,gades/novacoin,neureal/noocoin,prodigal-son/blackcoin,BeirdoMud/MudCoin,Someguy123/novafoil,5mil/SuperTurboStake,iceinsidefire/peershare-edit,Jheguy2/Mercury,CoinGame/BCEShadowNet,iadix/iadixcoin,nochowderforyou/clams,landcoin-ldc/landcoin,jyap808/jumbucks,valorbit/valorbit-oss,thunderrabbit/clams,ya4-old-c-coder/yacoin,AquariusNetwork/ARCO,effectsToCause/vericoin,Ziftr/ppcoin,Jheguy2/Mercury,jlay11/sharecoin,elcrypto/Pulse,d5000/ppcoin,snakie/ppcoin,Magicking/neucoin,FuzzyBearBTC/Peershares-1,etercoin/etercoin,shadowproject/shadow,IOCoin/DIONS,sproutcoin/sprouts,MOIN/moin,lateminer/DopeCoinGold,Crypto-Currency/BitBar,elambert2014/cbx2,thunderrabbit/clams,IOCoin/DIONS,ALEXIUMCOIN/alexium,DigitalPandacoin/pandacoin,thodg/ppcoin,ghostlander/Orbitcoin,snakie/ppcoin,SproutsEx/SproutsExtreme,ALEXIUMCOIN/alexium,benzhi888/renminbi,senadj/yacoin,VsyncCrypto/Vsync,5mil/SuperTurboStake,gorgoy/novacoin,TheoremCrypto/TheoremCoin,nochowderforyou/clams,ALEXIUMCOIN/alexium,ghostlander/Testcoin,DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,pinkmagicdev/SwagBucks,yacoin/yacoin,lordsajan/erupee,senadj/yacoin,bitgrowchain/bitgrow,ForceMajeure/BitPenny-Client,Ziftr/ppcoin,Whitecoin-org/Whitecoin,gorgoy/novacoin,BeirdoMud/MudCoin,FuzzyBearBTC/peercoin,stamhe/ppcoin,iceinsidefire/peershare-edit,som4paul/BolieC,Peerapps/ppcoin,blackcoinhelp/blackcoin,glv2/peerunity,slimcoin-project/Slimcoin,lentza/SuperTurboStake,dopecoin-dev/DopeCoinGold,redfish64/nomiccoin,Stakemaker/OMFGcoin,pocopoco/yacoin,TheoremCrypto/TheoremCoin,snakie/ppcoin,ya4-old-c-coder/yacoin,TheSeven/ppcoin,Action-Committee/Spaceballz,stronghands/stronghands,novacoin-project/novacoin,Stakemaker/OMFGcoin,ALEXIUMCOIN/alexium,stronghands/stronghands,TheoremCrypto/TheoremCoin,lordsajan/erupee,senadj/yacoin,ghostlander/Orbitcoin,stamhe/ppcoin,effectsToCause/vericoin,thunderrabbit/clams,gfneto/Peershares,iadix/iadixcoin,palm12341/jnc,etercoin/etercoin,Ziftr/Peerunity,elambert2014/novacoin,robvanmieghem/clams,iadix/iadixcoin,Rimbit/Wallets,FuzzyBearBTC/Peershares,CoinBlack/bitcoin,slimcoin-project/Slimcoin,MoMoneyMonetarism/ppcoin,5mil/SuperTurboStake,blackcoinhelp/blackcoin,jlay11/sharecoin,vectorcoindev/Vector,VsyncCrypto/Vsync,daeMOn63/Peershares,BlueMeanie/PeerShares,rat4/blackcoin,robvanmieghem/clams,gorgoy/novacoin,peercoin/peercoin,SproutsEx/SproutsExtreme,TheoremCrypto/TheoremCoin,CoinGame/BCEShadowNet,benzhi888/renminbi,prodigal-son/blackcoin,CoinGame/NuShadowNet,Stakemaker/OMFGcoin,FuzzyBearBTC/Peershares-1,thunderrabbit/clams,sigmike/peercoin,byncoin-project/byncoin,lateminer/DopeCoinGold,vectorcoindev/Vector,thodg/ppcoin,CoinBlack/blackcoin,elambert2014/cbx2,Peerunity/Peerunity,LanaCoin/lanacoin,stamhe/novacoin,CoinGame/BCEShadowNet,yacoin/yacoin,Someguy123/novafoil,NeuCoin/neucoin,greencoin-dev/GreenCoinV2,Rimbit/Wallets,IOCoin/iocoin,lentza/SuperTurboStake,ForceMajeure/BitPenny-Client,Peerapps/ppcoin,peerdb/cors,jlay11/sharecoin,fsb4000/novacoin,AquariusNetwork/ARCOv2,Action-Committee/Spaceballz,iadix/iadixcoin,elambert2014/novacoin,redfish64/nomiccoin,rat4/blackcoin,Ziftr/Peerunity,5mil/Bolt,valorbit/valorbit,iceinsidefire/peershare-edit,AquariusNetwork/ARCO,IOCoin/DIONS,vectorcoindev/Vector,gades/novacoin,iadix/iadixcoin,Jheguy2/Mercury,prodigal-son/blackcoin,slimcoin-project/Slimcoin,landcoin-ldc/landcoin,gfneto/Peershares,CoinBlack/bitcoin,landcoin-ldc/landcoin,FuzzyBearBTC/Peershares-1,greencoin-dev/GreenCoinV2,MoMoneyMonetarism/ppcoin,novacoin-project/novacoin,rat4/blackcoin,VsyncCrypto/Vsync,redfish64/nomiccoin,Action-Committee/Spaceballz,vectorcoindev/Vector,effectsToCause/vericoin,lordsajan/erupee,internaut-me/ppcoin,lordsajan/erupee,palm12341/jnc,gfneto/Peershares,okcashpro/okcash,Ziftr/ppcoin,jlay11/sharecoin,pocopoco/yacoin,sproutcoin/sprouts,vizidrixfork/Peershares,peercoin/peercoin,AquariusNetwork/ARCOv2,vizidrixfork/Peershares,gades/novacoin,FuzzyBearBTC/Fuzzyshares,SproutsEx/SproutsExtreme,Ziftr/ppcoin,Someguy123/novafoil,valorbit/valorbit,redfish64/nomiccoin,dopecoin-dev/DopeCoinGold,valorbit/valorbit,Peerunity/Peerunity,TurboStake/TurboStake,peerdb/cors,jyap808/jumbucks,TheoremCrypto/TheoremCoin,lordsajan/erupee,IOCoin/DIONS,prodigal-son/blackcoin,landcoin-ldc/landcoin,gades/novacoin,FuzzyBearBTC/peercoin,iceinsidefire/peershare-edit,penek/novacoin,thunderrabbit/clams,FuzzyBearBTC/Peershares,coinkeeper/2015-06-22_18-45_peercoin,iadix/iadixcoin,Magicking/neucoin,FuzzyBearBTC/Peershares,MoMoneyMonetarism/ppcoin,CoinGame/BCEShadow,ppcoin/ppcoin,pinkmagicdev/SwagBucks,Kefkius/clams,ghostlander/Orbitcoin,LanaCoin/lanacoin,shadowproject/shadow,phorensic/yacoin,coinkeeper/2015-06-22_18-45_peercoin,elcrypto/Pulse,thodg/ppcoin,elambert2014/cbx2,blackcoinhelp/blackcoin,Peershares/Peershares,AquariusNetwork/ARCO,Magicking/neucoin,NeuCoin/neucoin,CoinBlack/blackcoin,landcoin-ldc/landcoin,GeopaymeEE/e-goldcoin,greencoin-dev/GreenCoinV2,nochowderforyou/clams,coinkeeper/2015-06-22_18-45_peercoin,iadix/iadixcoin,CoinGame/NuShadowNet,Whitecoin-org/Whitecoin,CoinBlack/bitcoin,neureal/noocoin,rat4/blackcoin,Stakemaker/OMFGcoin,FuzzyBearBTC/Peershares2,NeuCoin/neucoin,Kefkius/clams,ppcoin/ppcoin,lentza/SuperTurboStake,DigitalPandacoin/pandacoin,CoinGame/NuShadowNet,Jheguy2/Mercury,CoinBlack/bitcoin,ghostlander/Orbitcoin,neureal/noocoin,okcashpro/okcash,bitgrowchain/bitgrow,FuzzyBearBTC/Fuzzyshares,phorensic/yacoin,TheSeven/ppcoin,DigitalPandacoin/pandacoin,MOIN/moin,yacoin/yacoin,coinkeeper/2015-06-22_18-45_peercoin,FuzzyBearBTC/Peershares-1,neureal/noocoin,jyap808/jumbucks,jlay11/sharecoin,TurboStake/TurboStake,pinkmagicdev/SwagBucks,ppcoin/ppcoin,CoinGame/NuShadowNet,BlueMeanie/PeerShares,MOIN/moin,sproutcoin/sprouts,novacoin-project/novacoin,phorensic/yacoin,TurboStake/TurboStake,valorbit/valorbit-oss,FuzzyBearBTC/Fuzzyshares,jlay11/sharecoin,IOCoin/DIONS,ya4-old-c-coder/yacoin,GeopaymeEE/e-goldcoin,robvanmieghem/clams,lateminer/DopeCoinGold,pinkmagicdev/SwagBucks,CoinBlack/bitcoin,sigmike/peercoin,stamhe/novacoin,iadix/iadixcoin,jyap808/jumbucks,peerdb/cors,AquariusNetwork/ARCOv2,dooglus/clams,okcashpro/okcash,nochowderforyou/clams,blackcoinhelp/blackcoin,Peerapps/ppcoin,CoinGame/BCEShadow,TurboStake/TurboStake,lordsajan/erupee,byncoin-project/byncoin,gades/novacoin,effectsToCause/vericoin,CoinGame/BCEShadowNet,xranby/blackcoin,iadix/iadixcoin,IOCoin/iocoin,TheSeven/ppcoin,Kefkius/clams,ppcoin/ppcoin,fsb4000/novacoin,Rimbit/Wallets,peercoin/peercoin,pocopoco/yacoin,Peerunity/Peerunity,dooglus/clams,dooglus/clams,etercoin/etercoin,som4paul/BolieC,shadowproject/shadow,d5000/ppcoin,stamhe/ppcoin,glv2/peerunity,shadowproject/shadow,TheSeven/ppcoin,elcrypto/Pulse,lentza/SuperTurboStake,etercoin/etercoin,Rimbit/Wallets,peercoin/peercoin,MOIN/moin,lordsajan/erupee,lentza/SuperTurboStake,FuzzyBearBTC/Peerunity,jyap808/jumbucks,Crypto-Currency/BitBar,peercoin/peercoin,xranby/blackcoin,slimcoin-project/Slimcoin,Whitecoin-org/Whitecoin,ForceMajeure/BitPenny-Client,Ziftr/ppcoin,stronghands/stronghands,phorensic/yacoin,FuzzyBearBTC/Peershares,internaut-me/ppcoin