From 8c5b3a601366faa6901f7f58ef3543fb9b93dc12 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:19:10 -0500 Subject: opkg: strdup the command line arguments so we can free the struct properly later git-svn-id: http://opkg.googlecode.com/svn/trunk@117 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/args.c b/libopkg/args.c index 6143f11..495f1a8 100644 --- a/libopkg/args.c +++ b/libopkg/args.c @@ -149,14 +149,14 @@ int args_parse(args_t *args, int argc, char *argv[]) args->query_all = 1; break; case 'd': - args->dest = optarg; + args->dest = strdup (optarg); break; case 'f': free(args->conf_file); args->conf_file = strdup(optarg); break; case 'o': - args->offline_root = optarg; + args->offline_root = strdup (optarg); break; case 'n': args->noaction = 1; -- cgit v0.9.1