From: Simon Tatham Date: Tue, 14 Feb 2017 20:39:22 +0000 (+0000) Subject: Fix a typoed end-of-string check in testbn. X-Git-Tag: 0.68~26 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=bda87b39e40ec4e75309cdf778dfc9cd339fdeeb;p=PuTTY.git 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. --- diff --git a/testbn.c b/testbn.c index 576c18b7..2ea4f459 100644 --- a/testbn.c +++ b/testbn.c @@ -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) {