gui-fatal: add \n to message on stderr
This commit is contained in:
parent
393553c7bb
commit
73adfc88e3
@ -20,7 +20,7 @@ static void produce_message(const char * type, const char *fmt, va_list args)
|
|||||||
(void) vsnprintf(buf, sizeof(buf), fmt, args);
|
(void) vsnprintf(buf, sizeof(buf), fmt, args);
|
||||||
asprintf(&dialog_msg, "%s: %s: %s (error type: %s)",
|
asprintf(&dialog_msg, "%s: %s: %s (error type: %s)",
|
||||||
program_invocation_short_name, type, buf, strerror(errno));
|
program_invocation_short_name, type, buf, strerror(errno));
|
||||||
fprintf(stderr, "%s", dialog_msg);
|
fprintf(stderr, "%s\n", dialog_msg);
|
||||||
switch (fork()) {
|
switch (fork()) {
|
||||||
case -1:
|
case -1:
|
||||||
exit(1); //what else
|
exit(1); //what else
|
||||||
|
Loading…
Reference in New Issue
Block a user