summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sprintf.c b/sprintf.c
index 5817f19224..a907d1c9a2 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -612,9 +612,6 @@ fmt_setup(buf, c, flags, width, prec)
int flags, width, prec;
{
*buf++ = '%';
- if (strchr("doOXx", c)) {
- *buf++ = 'l';
- }
if (flags & FSHARP) *buf++ = '#';
if (flags & FPLUS) *buf++ = '+';
if (flags & FMINUS) *buf++ = '-';
@@ -630,6 +627,9 @@ fmt_setup(buf, c, flags, width, prec)
buf += strlen(buf);
}
+ if (strchr("doOXx", c)) {
+ *buf++ = 'l';
+ }
*buf++ = c;
*buf = '\0';
}