[Mplayerplug-in-cvs] mplayerplug-in/Source plugin-list.cpp, 1.80, 1.81
Brought to you by:
kdekorte
|
From: Kevin D. <kde...@us...> - 2010-01-24 15:22:42
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv2179/Source Modified Files: plugin-list.cpp Log Message: Fix crash in RAM parser Index: plugin-list.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-list.cpp,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -d -r1.80 -r1.81 *** plugin-list.cpp 3 May 2009 16:22:40 -0000 1.80 --- plugin-list.cpp 24 Jan 2010 15:22:34 -0000 1.81 *************** *** 856,866 **** //sub = strchr(url, 0x20); // terminate on space sub = strchr(url, EOF); // terminate on EOF ! if (sub != NULL) sub[0] = '\0'; if (DEBUG) printf("URL: %s\n", url); parent->playlist = 1; addToList(instance, url, parent, -1, 0, -1,0); ! p = p + strlen(url) + 1; found = 1; } --- 856,869 ---- //sub = strchr(url, 0x20); // terminate on space sub = strchr(url, EOF); // terminate on EOF ! if (sub != NULL) { sub[0] = '\0'; + p = NULL; + } if (DEBUG) printf("URL: %s\n", url); parent->playlist = 1; addToList(instance, url, parent, -1, 0, -1,0); ! if ( p != NULL ) ! p = p + strlen(url) + 1; found = 1; } *************** *** 889,899 **** //sub = strchr(url, 0x20); // terminate on space sub = strchr(url, EOF); // terminate on EOF ! if (sub != NULL) sub[0] = '\0'; if (DEBUG) printf("URL: %s\n", url); parent->playlist = 1; addToList(instance, url, parent, -1, 0, -1,0); ! p = p + strlen(url) + 1; found = 1; } --- 892,905 ---- //sub = strchr(url, 0x20); // terminate on space sub = strchr(url, EOF); // terminate on EOF ! if (sub != NULL) { sub[0] = '\0'; + p = NULL; + } if (DEBUG) printf("URL: %s\n", url); parent->playlist = 1; addToList(instance, url, parent, -1, 0, -1,0); ! if ( p != NULL ) ! p = p + strlen(url) + 1; found = 1; } |