Mercurial > hg > early-roguelike
diff rogue3/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 | 527e2150eaf0 |
children |
line wrap: on
line diff
--- a/rogue3/things.c Sun Feb 11 15:37:33 2018 -0500 +++ b/rogue3/things.c Fri Nov 22 21:18:27 2019 -0500 @@ -62,9 +62,9 @@ when FOOD: if (obj->o_which == 1) if (obj->o_count == 1) - sprintf(prbuf, "A%s %s", vowelstr(fruit), fruit); + sprintf(prbuf, "A%s %.76s", vowelstr(fruit), fruit); else - sprintf(prbuf, "%d %ss", obj->o_count, fruit); + sprintf(prbuf, "%d %.66ss", obj->o_count, fruit); else if (obj->o_count == 1) strcpy(prbuf, "Some food");