diff options
-rw-r--r-- | src/preferences.c | 2 |
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++) { |