---
printf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/printf.c b/printf.c
index e36a14f..ee4a9ba 100644
--- a/printf.c
+++ b/printf.c
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
free(rarg);
break;
case 's':
- fmt = emalloc(sizeof("%*.*s" + nflags));
+ fmt = emalloc(sizeof("%*.*s") + nflags);
sprintf(fmt, "%%%.*s*.*s", (int)nflags, &format[f]);
printf(fmt, width, precision, arg);
free(fmt);
--
2.42.0