diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 024c3f0df0be..94667f381a60 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -388,7 +388,7 @@ printf_doformat(char *fmt, int *rval) free(p); if (getout) - exit(*rval); + return (end_fmt); break; } case 'c': {