From f4649c7ce7686a642eacb84e38ca3ac7e5bb8dd3 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 17 Apr 2011 17:17:09 +0000 Subject: (svn r22336) -Fix (r22304): {DECIMAL} printed too many thousand separators. --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index edcfbb53a..148790425 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -262,7 +262,7 @@ static char *FormatNumber(char *buff, int64 number, const char *last, const char } if (tot |= quot || i >= max_digits - zerofill) { buff += seprintf(buff, last, "%i", (int)quot); - if ((i % 3) == thousands_offset && i != max_digits - 1) buff = strecpy(buff, separator, last); + if ((i % 3) == thousands_offset && i < max_digits - 1 - fractional_digits) buff = strecpy(buff, separator, last); } divisor /= 10; -- cgit v1.2.3-54-g00ecf