From: Dana Jansens Date: Wed, 19 Mar 2003 07:20:29 +0000 (+0000) Subject: strdup the database string, dont return it directly X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ff39eb9ba28360086bec0b2bd097906ebd407741;p=chaz%2Fopenbox strdup the database string, dont return it directly --- diff --git a/engines/openbox/theme.c b/engines/openbox/theme.c index 50e54844..4fc859da 100644 --- a/engines/openbox/theme.c +++ b/engines/openbox/theme.c @@ -95,7 +95,7 @@ gboolean read_string(XrmDatabase db, char *rname, char **value) if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { - *value = retvalue.addr; + *value = g_strdup(retvalue.addr); ret = TRUE; }