From: PatR Date: Mon, 15 Mar 2021 08:05:19 +0000 (-0700) Subject: curses perm_invent comment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f008319c5d30ce802cb1ac88c9ae09e75b79783c;p=nethack curses perm_invent comment Stripping article ("a ", "an ", "the ") off inventory items to squeeze a little more info into truncated persistent inventory was initially case insensitve. That was removed because it isn't needed but the comment still reflected it. --- diff --git a/win/curses/cursinvt.c b/win/curses/cursinvt.c index bee379394..b6d08b43f 100644 --- a/win/curses/cursinvt.c +++ b/win/curses/cursinvt.c @@ -255,11 +255,11 @@ pi_article_skip(const char *str) unsigned skip = 0; /* number of chars to skip when displaying str */ /* - * if (!strncmpi(str, "a ", 2)) + * if (!strncmp(str, "a ", 2)) * skip = 2; - * else if (!strncmpi(str, "an ", 3)) + * else if (!strncmp(str, "an ", 3)) * skip = 3; - * else if (!strncmpi(str, "the ", 4)) + * else if (!strncmp(str, "the ", 4)) * skip = 4; */ if (str[0] == 'a') {