aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap.c b/extcap.c
index c52eda6e34..403e5013fc 100644
--- a/extcap.c
+++ b/extcap.c
@@ -471,10 +471,10 @@ extcap_arg_cb(gpointer key, gpointer value, gpointer data) {
if ( key != NULL )
{
- g_ptr_array_add(args, key);
+ g_ptr_array_add(args, g_strdup((const gchar*)key));
if ( value != NULL )
- g_ptr_array_add(args, value);
+ g_ptr_array_add(args, g_strdup((const gchar*)value));
}
}