From Eric Sesterhenn via bug 4175:

Use g_strdup to allocate filename.

svn path=/trunk/; revision=30755
This commit is contained in:
Stig Bjørlykke 2009-10-29 11:16:22 +00:00
parent e2c0856e09
commit a9a836af98
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ static FILE* ddict_open(const char* system_directory, const char* filename) {
fname = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s",
system_directory,filename);
} else {
fname = strdup(filename);
fname = g_strdup(filename);
}
fh = ws_fopen(fname,"r");