summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 27aded5..bc92f96 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -44,7 +44,7 @@ char* get_host_id()
gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL);
if (loc_host_id)
- host_id = strdup(loc_host_id);
+ host_id = strdup((char*)loc_host_id);
g_free(loc_host_id);
}
g_key_file_free(key_file);