diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-04 21:26:03 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-04 21:26:03 +0000 |
commit | 649a962b99b2859e58be33b043baa89eed40f02c (patch) | |
tree | fe077b45da6c7f60ffa231f340007cf0fb329d9e /src/lib-popt | |
parent | d1ade13a71c3771da956b7f0d0cde67ec2e0858c (diff) | |
download | irssi-649a962b99b2859e58be33b043baa89eed40f02c.zip |
Ahem.. my little kludge had a buffer overflow :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2392 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-popt')
-rw-r--r-- | src/lib-popt/popt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib-popt/popt.c b/src/lib-popt/popt.c index d2fe34f7..a23ae8aa 100644 --- a/src/lib-popt/popt.c +++ b/src/lib-popt/popt.c @@ -453,7 +453,7 @@ 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++] = - strcpy(malloc(strlen(con->os->nextArg)), con->os->nextArg); + strcpy(malloc(strlen(con->os->nextArg)+1), con->os->nextArg); } if (dup) g_free(dup); |