]> granicus.if.org Git - nethack/commitdiff
win32gui: follow-up
authornethack.allison <nethack.allison>
Sun, 14 Jul 2002 19:56:49 +0000 (19:56 +0000)
committernethack.allison <nethack.allison>
Sun, 14 Jul 2002 19:56:49 +0000 (19:56 +0000)
sys/share/pcmain.c

index 93495158c0804768c9a2d2bf7e563e45cd4779f6..e235666a1fedcfa104dca793d96a66c4eefff1fb 100644 (file)
@@ -565,7 +565,7 @@ nhusage()
        buf1[0] = '\0';
        bufptr = buf1;
 
-#define ADD_USAGE(s)   if (strlen(buf1) < ((BUFSZ - strlen(s)) + 1)) Strcat(bufptr, s);
+#define ADD_USAGE(s)   if ((strlen(buf1) + strlen(s)) < (BUFSZ - 1)) Strcat(bufptr, s);
 
        /* -role still works for those cases which aren't already taken, but
         * is deprecated and will not be listed here.