Fix "usage()" to do the missing line termination.

It got broken when I changed it to use stdarg.
maint
Linus Torvalds 2005-04-11 13:53:49 -07:00
parent 32d197f18d
commit 0dcad32ae2
1 changed files with 3 additions and 1 deletions

View File

@ -12,10 +12,12 @@ unsigned int active_nr = 0, active_alloc = 0;
void usage(const char *err, ...)
{
va_list args;
char string[200];

va_start(args, err);
vfprintf(stderr, err, args);
vsnprintf(string, sizeof(string), err, args);
va_end(args);
fprintf(stderr, "%s\n", string);
exit(1);
}