[Mplayerplug-in-cvs] mplayerplug-in/Source plugin-setup.cpp, 1.139, 1.140
Brought to you by:
kdekorte
|
From: Kevin D. <kde...@us...> - 2007-08-23 13:06:09
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8021/Source Modified Files: plugin-setup.cpp Log Message: safer patch Index: plugin-setup.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-setup.cpp,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** plugin-setup.cpp 23 Aug 2007 12:58:52 -0000 1.139 --- plugin-setup.cpp 23 Aug 2007 13:06:03 -0000 1.140 *************** *** 645,653 **** if (strncasecmp(parameters->argn[i], "qtsrc", 5) == 0) { instance->href = (char *)malloc(1024); ! instance->href = strcpy(instance->href,instance->url); ! tmp = rindex(instance->href,'/') + sizeof(char); ! if (tmp) ! tmp[0] = '\0'; ! instance->href = strncat(instance->href,parameters->argv[i],1024); if (strncasecmp(parameters->argv[i], "file://", 7) == 0) fullyQualifyURL(instance, parameters->argv[i], --- 645,657 ---- if (strncasecmp(parameters->argn[i], "qtsrc", 5) == 0) { instance->href = (char *)malloc(1024); ! tmp = rindex(instance->url,'/'); ! if (tmp) { ! instance->href = strcpy(instance->href,instance->url); ! tmp = rindex(instance->href,'/'); ! tmp[1] = '\0'; ! instance->href = strncat(instance->href,parameters->argv[i],1024); ! } else { ! instance->href = strcpy(instance->href,parameters->argv[i]); ! } if (strncasecmp(parameters->argv[i], "file://", 7) == 0) fullyQualifyURL(instance, parameters->argv[i], |