From 1a7baa199b1f265da29722656b426460fc0c9bf7 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 12 Feb 2011 20:48:07 +0100 Subject: [PATCH] fix a sprintf bug --- qcsrc/client/hud.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2