Commit da3166ca authored by Yves Combe's avatar Yves Combe
Browse files

fix segfault in worsgame...

fix segfault in worsgame (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273680). Same bug as in reading (see 2005-11-09).
parent 8ec15954
2005-09-25 Yves Combe <yves@ycombe.net>
fix segfault in worsgame (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273680). Same bug as in reading (see 2005-11-09).
* src/boards/wordsgame.c: (get_wordfile):
2005-09-25 Yves Combe <yves@ycombe.net>
fix macro name in gletters: plugin was fail starting.
......
/* gcompris - wordsgame.c
*
* Time-stamp: <2005/09/21 23:12:17 yves>
* Time-stamp: <2005/09/25 09:44:21 yves>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -724,8 +724,9 @@ static FILE *get_wordfile(const char *locale)
if(wordsfd==NULL)
{
g_free(filename);
/* Second Try to find a file matching the 'max' and the locale */
sprintf(filename, "%s%s%.2s",
filename = g_strdup_printf("%s%s%.2s",
PACKAGE_DATA_DIR, "/wordsgame/wordslevelmax.",
locale);
g_message("Trying to open file %s ", filename);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment