提交 0dcad32a 编写于 作者: L Linus Torvalds

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

It got broken when I changed it to use stdarg.
上级 32d197f1
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册