scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 5af21c8e9b18e3c7156532f16ec9df02bb1e11bb
parent fdbf2edecf2f3eba01c23eee08375d66162e7cce
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 12 Aug 2015 17:30:45 +0200

Fix die()

Die() was using fprintf() when it had to use vfprintf()

Diffstat:
Mlib/die.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/die.c b/lib/die.c @@ -14,7 +14,8 @@ die(const char *fmt, ...) failure = 1; va_list va; va_start(va, fmt); - fprintf(stderr, fmt, va); + vfprintf(stderr, fmt, va); + putc('\n', stderr); va_end(va); exit(1); }