Added SILC Thread Queue API
[runtime.git] / apps / irssi / src / lib-popt / popt.c
index c09a0b301caaadc1b33ce72fcedeeb2df43e7664..a23ae8aa78b917f45b37921fff98f26e8da550b7 100644 (file)
@@ -452,7 +452,8 @@ int poptGetNextOpt(poptContext con) {
 
        if (opt->arg && (opt->argInfo & POPT_ARG_MASK) != POPT_ARG_NONE
                     && (opt->argInfo & POPT_ARG_MASK) != POPT_ARG_VAL) 
-           con->finalArgv[con->finalArgvCount++] = g_strdup(con->os->nextArg);
+           con->finalArgv[con->finalArgvCount++] =
+               strcpy(malloc(strlen(con->os->nextArg)+1), con->os->nextArg);
     }
 
     if (dup) g_free(dup);