Simplify nul-termination handling logic.
Simplify nul-termination handling logic.

btrask/stronglink,rmoorman/stronglink,iOSCowboy/stronglink,shaunstanislaus/stronglink,rmoorman/stronglink,guiquanz/stronglink,guiquanz/stronglink,btrask/stronglink,Ryezhang/stronglink,Lacra17/stronglink,feld/stronglink,yamingd/stronglink,yamingd/stronglink,btrask/stronglink,guiquanz/stronglink,iOSCowboy/stronglink,shaunstanislaus/stronglink,nkatsaros/stronglink,Ryezhang/stronglink,Lacra17/stronglink,shaunstanislaus/stronglink,nkatsaros/stronglink,yamingd/stronglink,rmoorman/stronglink,Ryezhang/stronglink,feld/stronglink,nkatsaros/stronglink,feld/stronglink,Lacra17/stronglink,iOSCowboy/stronglink,btrask/stronglink