From: nethack.allison Date: Sun, 14 Jul 2002 19:56:49 +0000 (+0000) Subject: win32gui: follow-up X-Git-Tag: MOVE2GIT~2634 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8768a69e49ddbba224544db7830cb5263377f5d8;p=nethack win32gui: follow-up --- diff --git a/sys/share/pcmain.c b/sys/share/pcmain.c index 93495158c..e235666a1 100644 --- a/sys/share/pcmain.c +++ b/sys/share/pcmain.c @@ -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.