From: Rudolf Polzer Date: Sat, 12 Feb 2011 19:48:07 +0000 (+0100) Subject: fix a sprintf bug X-Git-Tag: xonotic-v0.5.0~311^2~22 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a7baa199b1f265da29722656b426460fc0c9bf7;p=xonotic%2Fxonotic-data.pk3dir.git fix a sprintf bug --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index a383c355c..e8309ef4e 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -395,9 +395,9 @@ string MakeRaceString(float cp, float mytime, float histime, float lapdelta, str if(histime < 0) return strcat(col, cpname); else if(hisname == "") - return strcat(col, sprintf(_("%s (%s)")), cpname, timestr); + return strcat(col, sprintf(_("%s (%s)"), cpname, timestr)); else - return strcat(col, sprintf(_("%s (%s %s)")), cpname, timestr, strcat(hisname, col, lapstr)); + return strcat(col, sprintf(_("%s (%s %s)"), cpname, timestr, strcat(hisname, col, lapstr))); } // Check if the given name already exist in race rankings? In that case, where? (otherwise return 0)