Fix a memory corruption (altbug #14929).

This commit is contained in:
Alexey I. Froloff 2008-08-27 22:20:31 +04:00 committed by Alex V. Myltsev
parent f2922999ae
commit 65a82cc0f2

View File

@ -3247,7 +3247,9 @@ int main(int argc,const char *argv[])
if (strstr(*I, "://") != NULL)
{
URLLst.push_back(*I);
*I = strrchr(*I, '/')+1;
const char *N = strdup(strrchr(*I, '/')+1);
free((void *)*I);
*I = N;
}
}