Use proper width in format specifier - patch by Kp

This commit is contained in:
zicodxx 2013-01-03 17:34:06 +01:00
parent 97c86f2b5e
commit 1f2d9bb061
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ arch/ogl/gr.c, main/game.c: Moved screenshot message formating to HUD_init_messa
main/automap.c, main/credits.c, main/gamerend.c, main/gauges.c, main/hud.c, main/kmatrix.c, main/menu.c, main/newmenu.c, main/scores.c: Converted gr_printf to gr_string where needed - patch by Kp
editor/medrobot.c, main/endlevel.c, main/gamecntl.c, main/powerup.c, main/wall.c, main/weapon.c, ui/file.c: Added dummy "%s" to prevent formatting untrusted literals - patch by Kp
main/hud.c: Removed obsolete HUD cleaning code - patch by Kp
editor/info.c: Use proper width in format specifier - patch by Kp
20121102
--------

View file

@ -262,7 +262,7 @@ void info_display_default(int show_all)
//--------------- Current_side_number -------------
if (( old_Cursegp_num != Cursegp-Segments ) || ( old_Curside != Curside )) {
gr_uprintf( 0, 48, "Cursegp/side: %3d/%1d", Cursegp-Segments, Curside);
gr_uprintf( 0, 48, "Cursegp/side: %3ld/%1d", Cursegp-Segments, Curside);
gr_uprintf( 0, 128, " tmap1,2,o: %3d/%3dx%1d", Cursegp->sides[Curside].tmap_num, Cursegp->sides[Curside].tmap_num2 & 0x3FFF, (Cursegp->sides[Curside].tmap_num2 >> 14) & 3);
old_Cursegp_num = Cursegp-Segments;
old_Curside = Curside;