summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index 27103f96d2..bc7f77bfb6 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -23,6 +23,7 @@ remove_sign_bits(str, base)
char *s, *t, *end;
s = t = str;
+ end = str + strlen(str);
if (base == 16) {
x_retry: