diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e97588c30..2220574b1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -18,6 +18,7 @@ editor/centers.c, main/gamecntl.c, main/gamerend.c: Fixed argument specifier mis arch/ogl/gr.c, main/game.c: Moved screenshot message formating to HUD_init_message - patch by Kp (and me for non-OGL code ;)) 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/fireball.c, main/gamecntl.c, main/hostage.c, main/multi.c, main/newdemo.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 20121102 -------- diff --git a/main/hud.c b/main/hud.c index 2a4121850..bfd61e36c 100644 --- a/main/hud.c +++ b/main/hud.c @@ -147,14 +147,6 @@ int HUD_init_message_va(int class_flag, char * format, va_list args) } } - // HACK!!! - // clean message if necessary. - // using placeholders may mess up message string and crash game(s). - // block them also to prevent attacks from other clients. - for (i = 0; i <= strlen(message); i++) - if (message[i] == '%') - message [i] = ' '; - if (HUD_nmessages >= HUD_MAX_NUM_STOR) { HUD_nmessages = HUD_MAX_NUM_STOR; // unnecessary but just in case it might be bigger... which is impossible