blob: 538f873b4132ecce6cc706ec758c40837e5bcdac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- a/save.c
+++ b/save.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include <X11/Intrinsic.h>
@@ -142,7 +143,7 @@
fclose(save_file);
#ifndef AIX
- fprintf (stderr, "xgammon: %s. Sorry and bye!\n", sys_siglist[n]);
+ fprintf (stderr, "xgammon: %s. Sorry and bye!\n", strsignal(n));
#else
fprintf (stderr, "xgammon: Caught signal %d. Sorry and bye!\n", n);
#endif
|