Package: gnushogi
Version: 1.3.2-2
Severity: normal

Hi,

When I tried to run gnushogi and asked for some help (through the
'help' command), gnushogi exited with a segfault.

This was caused by a change in one of the strings of the program,
namely CP[40], which changed from "SHOGI command summary\n" to "GNU
Shogi %sp%s command summary\n". This format change is properly applied
in gnushogi/cursesdsp.c, but not in gnushogi/rawdsp.c. A 'patch' is
included.

Greetings,

Stijn van Drongelen


--- cut here ---

diff -Naur gnushogi-1.3.2-2/gnushogi/rawdsp.c
gnushogi-1.3.2-2.1/gnushogi/rawdsp.c
--- gnushogi-1.3.2-2/gnushogi/rawdsp.c       2004-07-08 02:16:35.000000000 +0200
+++ gnushogi-1.3.2-2.1/gnushogi/rawdsp.c    2007-07-21 22:28:19.000000000 +0200
@@ -241,7 +241,7 @@
{
    Raw_ClearScreen();
    /* printf("SHOGI command summary\n"); */
-    printf(CP[40]);
+    printf(CP[40], version, patchlevel);
    printf("----------------------------------"
           "------------------------------\n");
    /* printf("7g7f      move from 7g to 7f      quit


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to