]> granicus.if.org Git - nethack/commitdiff
follow-up (from entrez)
authornhmall <nhmall@nethack.org>
Sun, 22 May 2022 01:22:20 +0000 (21:22 -0400)
committernhmall <nhmall@nethack.org>
Sun, 22 May 2022 01:22:20 +0000 (21:22 -0400)
src/objnam.c

index 61c277d5e1b4c60657e850745d01b9cd121699d6..0cb7a5dbeee2110955cf1c407349c7de38632c18 100644 (file)
@@ -2630,7 +2630,7 @@ makeplural(const char* oldstr)
     /* -eau/-eaux (gateau, chapeau...) */
     if (len >= 3 && !strcmpi(spot - 2, "eau")
         /* 'bureaus' is the more common plural of 'bureau' */
-        && strncmpi(str, "bureau", 6)) {
+        && BSTRCMPI(str, spot - 5, "bureau")) {
         Strcasecpy(spot + 1, "x");
         goto bottom;
     }