gui-fatal: add \n to message on stderr

This commit is contained in:
Vincent Penquerc'h 2013-12-29 08:06:21 -05:00 committed by Marek Marczykowski-Górecki
parent 393553c7bb
commit 73adfc88e3

View File

@ -20,7 +20,7 @@ static void produce_message(const char * type, const char *fmt, va_list args)
(void) vsnprintf(buf, sizeof(buf), fmt, args);
asprintf(&dialog_msg, "%s: %s: %s (error type: %s)",
program_invocation_short_name, type, buf, strerror(errno));
fprintf(stderr, "%s", dialog_msg);
fprintf(stderr, "%s\n", dialog_msg);
switch (fork()) {
case -1:
exit(1); //what else