From Eric Sesterhenn via bug 4175:
Use g_strdup to allocate filename. svn path=/trunk/; revision=30755
This commit is contained in:
parent
e2c0856e09
commit
a9a836af98
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue