1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fix a typoed end-of-string check in testbn.

I was testing the actual pointer against NULL instead of testing the
pointed-to character against NUL.
This commit is contained in:
Simon Tatham 2017-02-14 20:39:22 +00:00
parent 2a2434e0cc
commit bda87b39e4

View File

@ -55,7 +55,7 @@ int main(int argc, char **argv)
while (*bufp && !isspace((unsigned char)*bufp))
bufp++;
if (bufp)
if (*bufp)
*bufp++ = '\0';
while (*bufp) {