mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Ahem.. my little kludge had a buffer overflow :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2392 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d1ade13a71
commit
649a962b99
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user