From: nhmall Date: Sun, 22 May 2022 01:22:20 +0000 (-0400) Subject: follow-up (from entrez) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68d7ef440f82a05e5aefdf07cc8021f78f6f3737;p=nethack follow-up (from entrez) --- diff --git a/src/objnam.c b/src/objnam.c index 61c277d5e..0cb7a5dbe 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -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; }