]> granicus.if.org Git - nethack/commitdiff
Prevent buffer overflow
authorPasi Kallinen <paxed@alt.org>
Thu, 12 Nov 2015 20:01:47 +0000 (22:01 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 12 Nov 2015 20:01:47 +0000 (22:01 +0200)
src/pickup.c

index 058ec3a05eda65cec8959e190d5aa0268064420e..bf655281d30784bb18bed5c55a0b2a4e27fffe9c 100644 (file)
@@ -144,7 +144,7 @@ struct obj *objs;
 boolean here;
 int *menu_on_demand;
 {
-    char ilets[20], inbuf[BUFSZ];
+    char ilets[30], inbuf[BUFSZ]; /* FIXME: hardcoded ilets[] length */
     int iletct, oclassct;
     boolean not_everything;
     char qbuf[QBUFSZ];