aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Barrucadu <mike@barrucadu.co.uk>2009-04-28 16:49:15 +0100
committerGravatar Barrucadu <mike@barrucadu.co.uk>2009-04-28 16:49:15 +0100
commit3d13249ad6ed68879d583375383574fd1f77e4a3 (patch)
tree42806f2e28c5fd914f6e613649b381fcaea5e94b /uzbl.c
parent19db1dd05caf52db5d8d5c5187f1406fd99a9627 (diff)
parent80dedbd75159292dceea87bab4c5b90fd1bdd33e (diff)
Merge branch 'dusanx/master' into experimental
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/uzbl.c b/uzbl.c
index 422607f..a2c6931 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -530,8 +530,9 @@ settings_init () {
printf("XDG_CONFIG_DIRS: %s\n", XDG_CONFIG_DIRS);
- char *dirs = XDG_CONFIG_DIRS;
- char *dir = (char *)strtok (dirs, ":");
+ char buffer[512];
+ strcpy (buffer, XDG_CONFIG_DIRS);
+ const gchar* dir = strtok (buffer, ":");
while (dir && ! file_exists (conf)) {
strcpy (conf, dir);
strcat (conf, "/uzbl/config");
@@ -539,7 +540,7 @@ settings_init () {
printf ("Config file %s found.\n", conf);
config_file = &conf[0];
}
- dir = (char *)strtok (NULL, ":");
+ dir = strtok (NULL, ":");
}
}
}