Fixed error messages

This commit is contained in:
Jesse van den Kieboom 2006-01-10 01:35:44 +00:00
parent 185fc42ac7
commit 68fdb85215
1 changed files with 2 additions and 2 deletions

View File

@ -707,9 +707,9 @@ fmt_error(const char *s, const char *t)
if (str == 0)
str = new_stream(100);
if (t)
stream_printf(str, "Line %d: %s%s", lineno, s, t);
stream_printf(str, "%s%s", s, t);
else
stream_printf(str, "Line %d: %s", lineno, s);
stream_printf(str, "%s", s);
return reset_stream(str);
}