From 962289813197b2e4314b15cfc5c4f42d5a86237d Mon Sep 17 00:00:00 2001 From: carl Date: Sun, 24 Feb 2019 00:45:35 +0800 Subject: [PATCH] Bugfix of fprint using correct output redirection (fix from last commit). --- lang/cem/cemcom.ansi/error.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/cem/cemcom.ansi/error.c b/lang/cem/cemcom.ansi/error.c index 76421ed80..e2e87f76e 100644 --- a/lang/cem/cemcom.ansi/error.c +++ b/lang/cem/cemcom.ansi/error.c @@ -610,9 +610,9 @@ static void _error(int class, char *fn, unsigned int ln, char* fmt, va_list ap) #endif /* LINT */ if (fn) - fprint(stderr, "\"%s\", line %u: ", fn, ln); + fprint(STDERR, "\"%s\", line %u: ", fn, ln); if (remark) - fprint(stderr, "%s ", remark); - doprnt(stderr, fmt, ap); /* contents of error */ - fprint(stderr, "\n"); + fprint(STDERR, "%s ", remark); + doprnt(STDERR, fmt, ap); /* contents of error */ + fprint(STDERR, "\n"); }