Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--g_fmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g_fmt.c b/g_fmt.c
index 130dcd4..50d6a1d 100644
--- a/g_fmt.c
+++ b/g_fmt.c
@@ -90,6 +90,7 @@ fpconv_g_fmt(char *b, double x, int precision)
for(; decpt < 0; decpt++)
*b++ = '0';
while((*b++ = *s++));
+ b--;
}
else {
while((*b = *s++)) {