From 77de71d79d29b7fd744db27739836b9b5a1f8d6e Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 16 Sep 2009 13:38:04 +1200 Subject: [PATCH] Fixed gnprintf's translation parameter reordering (bug 4010, r=dvander) --- core/sm_stringutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sm_stringutil.cpp b/core/sm_stringutil.cpp index 13465750..5400c5c4 100644 --- a/core/sm_stringutil.cpp +++ b/core/sm_stringutil.cpp @@ -857,7 +857,7 @@ try_again: memcpy(new_params, params, sizeof(void *) * numparams); for (i = 0; i < trans.fmt_count; i++) { - new_params[i] = const_cast(params[curparam + trans.fmt_order[i]]); + new_params[curparam + i] = const_cast(params[curparam + trans.fmt_order[i]]); } if (!gnprintf(buf_p,