diff srogue/things.c @ 300:0250220d8cdd

Fix an assortment of compiler warnings. A few potential bugs were removed in the process. Much code cleanup remains to be done.
author John "Elwin" Edwards
date Fri, 22 Nov 2019 21:18:27 -0500
parents 94a0d9dd5ce1
children e52a8a7ad4c5
line wrap: on
line diff
--- a/srogue/things.c	Sun Feb 11 15:37:33 2018 -0500
+++ b/srogue/things.c	Fri Nov 22 21:18:27 2019 -0500
@@ -79,7 +79,7 @@
 		if (wh == 1) {
 			if (obj->o_count == 1)
 				q = vowelstr(fruit);
-			sprintf(prbuf, "%s%s %s%s", nm, q, fruit, pl);
+			sprintf(prbuf, "%s%s %.72s%s", nm, q, fruit, pl);
 		}
 		else {
 			if (obj->o_count == 1)