[gcompris-devel] Segmentation fault CVS
Olivier Samyn
osamyn at easynet.be
Tue Jan 27 05:39:02 UTC 2004
Hello,
Just a five cents note:
why not using the glib G_DIR_SEPARATOR in path ? this way an eventual
windows port will be simpler... :)
so the line soundfile=... should be:
soundfile = g_strdup_printf(
"%s%c%s%c%s",
PACKAGE_DATA_DIR,
G_DIR_SEPARATOR,
"sounds",
G_DIR_SEPARATOR,
board->mandatory_sound_file
);
Olivier ;)
>Index: menu.c
>===================================================================
>RCS file: /cvs/gnome/gcompris/src/boards/menu.c,v
>retrieving revision 1.38
>diff -u -r1.38 menu.c
>--- menu.c 10 Dec 2003 22:14:57 -0000 1.38
>+++ menu.c 27 Jan 2004 10:20:50 -0000
>@@ -351,7 +351,7 @@
> board->mandatory_sound_file);
> } else {
> /* We search a fixed path sound file */
>- soundfile = g_strdup_printf("%s/%s/%s", PACKAGE_DATA_DIR "/sounds",
>+ soundfile = g_strdup_printf("%s/%s/%s", PACKAGE_DATA_DIR, "/sounds",
> board->mandatory_sound_file);
> g_warning("Checking mandatory_sound_file %s\n", soundfile);
> }
>
>
More information about the Gcompris-devel
mailing list