strncmp corner case
n can be 1 as well\!
Merge pull request #393 from terryyin/master

strncmp corner case