remove extra new line with caption

* `ctime` format ends with a new line.
This commit is contained in:
huwwa 2026-05-04 05:47:52 +03:00 • committed by Charlie Gordon
commit db2bbc4c71

View file

@ -2542,10 +2542,10 @@ static void shell_close(ShellState *s)
else
status = -1;
if (status == 0) {
snprintf(buf, sizeof(buf), "\n%s finished at %s\n",
snprintf(buf, sizeof(buf), "\n%s finished at %s",
s->caption, time_str);
} else {
snprintf(buf, sizeof(buf), "\n%s exited abnormally with code %d at %s\n",
snprintf(buf, sizeof(buf), "\n%s exited abnormally with code %d at %s",
s->caption, status, time_str);
}
}