summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 0e77b23..366b958 100644
--- a/lib.c
+++ b/lib.c
@@ -1324,8 +1324,9 @@ uc_printf_common(uc_vm_t *vm, size_t nargs, uc_stringbuf_t *buf)
if (sfmt[i] == '.') {
for (pad_size = 0, i++; sfmt + i < fp && isdigit(sfmt[i]); i++)
pad_size = pad_size * 10 + (sfmt[i] - '0');
+
pad_size++;
- fp = &sfmt[i-1];
+ fp = strchr(sfmt, '.');
break;
}
}