about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/preferences.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preferences.c b/src/preferences.c
index 833425d8..b77d9a09 100644
--- a/src/preferences.c
+++ b/src/preferences.c
@@ -90,7 +90,7 @@ prefs_load(void)
 
     gsize i;
     for (i = 0; i < njids; i++) {
-        p_autocomplete_add(ac, jids[i]);
+        p_autocomplete_add(ac, strdup(jids[i]));
     }
 
     for (i = 0; i < njids; i++) {