Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup remains to be done.
This commit is contained in:
parent
de95b19cee
commit
7d459d7d36
47 changed files with 608 additions and 591 deletions
|
|
@ -1417,11 +1417,11 @@ sell(struct thing *tp)
|
|||
if (selection[i].count > 1)
|
||||
strcat(dbuf, "s");
|
||||
|
||||
sprintf(buffer, "%-50s Price: %d", dbuf, selection[i].worth);
|
||||
sprintf(buffer, "%-50.80s Price: %d", dbuf, selection[i].worth);
|
||||
waddstr(hw, buffer);
|
||||
}
|
||||
|
||||
sprintf(buffer, "Purse: %d", purse);
|
||||
sprintf(buffer, "Purse: %ld", purse);
|
||||
mvwaddstr(hw, nitems + 3, 0, buffer);
|
||||
mvwaddstr(hw, 0, 0, "How about one of the following goods? ");
|
||||
wrefresh(hw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue