summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-10-11 13:51:24 +0200
committerDanny Baumann <dannybaumann@web.de>2007-10-11 13:51:24 +0200
commit181522f503ffd0792137ff54a696aca1a020b4a1 (patch)
tree5e3768165b9f23aad455b43b444dbff14c7ee10c
parent25e1825f6bc52a7f34e38e20887433df9a475a8d (diff)
parent3d1a4ff8df3b468224afc4c1194c89dbf16e9150 (diff)
downloadcompizconfig-backend-gconf-0.6.0.tar.gz
compizconfig-backend-gconf-0.6.0.tar.bz2
Merge branch '0.6.0' of git+ssh://maniac@git.opencompositing.org/git/fusion/compizconfig/compizconfig-backend-gconf into 0.6.00.6.0
-rw-r--r--settings-backend/gconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings-backend/gconf.c b/settings-backend/gconf.c
index dc73f5d..cacee87 100644
--- a/settings-backend/gconf.c
+++ b/settings-backend/gconf.c
@@ -514,9 +514,11 @@ valueChanged (GConfClient *client,
if (strcmp (token + len - prefixLen, prefix[i]) == 0)
{
- char *buffer = strndup (token, len - prefixLen);
+ char *buffer = malloc (sizeof (char) * (len - prefixLen + 1));
if (buffer)
{
+ strncpy (buffer, token, len - prefixLen);
+ buffer[len - prefixLen] = 0;
setting = ccsFindSetting (plugin, buffer,
isScreen, screenNum);
free (buffer);