]> granicus.if.org Git - nethack/commitdiff
Changed the comparison length of "the " from 3 to 4 to account for the space in the...
authorjanne-hmp <janne.gustafsson@hyvanmielenpelit.fi>
Sat, 11 Jun 2022 13:50:04 +0000 (16:50 +0300)
committerPatR <rankin@nethack.org>
Sat, 11 Jun 2022 21:59:57 +0000 (14:59 -0700)
src/insight.c

index c0f574f15946b7083b336f9ca06f4e5674a907f7..3dd58b696d1b482998c1a974518cd2e53df0b529 100644 (file)
@@ -2744,7 +2744,7 @@ list_vanquished(char defquery, boolean ask)
                                 makeplural(mons[i].pmnames[NEUTRAL]));
                 }
                 /* number of leading spaces to match 3 digit prefix */
-                pfx = !strncmpi(buf, "the ", 3) ? 0
+                pfx = !strncmpi(buf, "the ", 4) ? 0
                       : !strncmpi(buf, "an ", 3) ? 1
                         : !strncmpi(buf, "a ", 2) ? 2
                           : !digit(buf[2]) ? 4 : 0;