diff --git a/mozilla/xpcom/ds/nsTextFormater.cpp b/mozilla/xpcom/ds/nsTextFormater.cpp index 031d2cc380a..381b7aab869 100644 --- a/mozilla/xpcom/ds/nsTextFormater.cpp +++ b/mozilla/xpcom/ds/nsTextFormater.cpp @@ -352,6 +352,7 @@ static int cvt_f(SprintfState *ss, double d, const PRUnichar *fmt0, const PRUnic } } #endif + sprintf(fout, fin, d); /* ** This assert will catch overflow's of fout, when building with ** debugging on. At least this way we can track down the evil piece diff --git a/mozilla/xpcom/ds/nsTextFormatter.cpp b/mozilla/xpcom/ds/nsTextFormatter.cpp index 819c85ddddf..9f7c6662b00 100644 --- a/mozilla/xpcom/ds/nsTextFormatter.cpp +++ b/mozilla/xpcom/ds/nsTextFormatter.cpp @@ -352,6 +352,8 @@ static int cvt_f(SprintfState *ss, double d, const PRUnichar *fmt0, const PRUnic } } #endif + sprintf(fout, fin, d); + /* ** This assert will catch overflow's of fout, when building with ** debugging on. At least this way we can track down the evil piece