aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib_string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib_string.c b/src/lib_string.c
index c1b584d8..8ca9ef01 100644
--- a/src/lib_string.c
+++ b/src/lib_string.c
@@ -746,6 +746,7 @@ LJLIB_CF(string_format)
746 nbuf[len-2] = nbuf[len-2] - 0x20; 746 nbuf[len-2] = nbuf[len-2] - 0x20;
747 nbuf[len-1] = nbuf[len-1] - 0x20; 747 nbuf[len-1] = nbuf[len-1] - 0x20;
748 } 748 }
749 nbuf[len] = '\0';
749 for (p = form; *p < 'e' && *p != '.'; p++) ; 750 for (p = form; *p < 'e' && *p != '.'; p++) ;
750 *p++ = 's'; *p = '\0'; 751 *p++ = 's'; *p = '\0';
751 sprintf(buff, form, nbuf); 752 sprintf(buff, form, nbuf);