(show_nuke_capab, show_ship_capab, show_plane_capab, show_land_capab)
(prxy, border, ac_encounter, look, budg): Fix misuse of pr() and PR(): passed formatted string instead of format string and arguments. Correctness depends on argument values and tables not containing '%', which is correct, but fragile.
This commit is contained in:
parent
65168f0d93
commit
b0a5d11a3f
6 changed files with 18 additions and 20 deletions
|
@ -183,9 +183,9 @@ budg(void)
|
|||
expenses -= mil;
|
||||
}
|
||||
if (p_sect[SCT_CAPIT][0]) {
|
||||
sprintf(in, "%s maintenance\t\t", dchr[SCT_CAPIT].d_name);
|
||||
in[0] = toupper(in[0]);
|
||||
pr(in);
|
||||
pr("%c%s maintenance\t\t",
|
||||
toupper(dchr[SCT_CAPIT].d_name[0]),
|
||||
dchr[SCT_CAPIT].d_name + 1);
|
||||
n = p_sect[SCT_CAPIT][0];
|
||||
sprintf(in, "%d %s", n, dchr[SCT_CAPIT].d_name);
|
||||
plurize(in, sizeof(in), n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue