Commit 067e9d16 authored by Niels Möller's avatar Niels Möller
Browse files

* src/werror.c (werror_vformat): Pass arguments to werror_write in

the correct order.
(werror_vformat): Likewise.

Rev: src/werror.c:1.53
parent 7a7ed9b6
......@@ -353,8 +353,8 @@ werror_vformat(const char *f, va_list args)
{
if (program_name)
{
werror_write(program_name, strlen(program_name));
werror_write(": ", 2);
werror_write(strlen(program_name), program_name);
werror_write(2, ": ");
}
while (*f)
......@@ -410,7 +410,7 @@ werror_vformat(const char *f, va_list args)
while (*s)
werror_paranoia_putc(*s++);
else
werror_write(s, strlen(s));
werror_write(strlen(s), s);
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment