[Mplayer-cvslog] CVS: main/libmpdemux url.c,1.25,1.26
Alex Beregszaszi
syncmail at mplayerhq.hu
Fri Jun 25 16:57:04 CEST 2004
CVS change done by Alex Beregszaszi
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv21493
Modified Files:
url.c
Log Message:
uber 10l found by Ilia <chest4l at mail.ru>
Index: url.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/url.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- url.c 1 May 2004 23:35:25 -0000 1.25
+++ url.c 25 Jun 2004 14:57:01 -0000 1.26
@@ -79,12 +79,12 @@
}
pos1 = ptr1-escfilename;
Curl->protocol = (char*)malloc(pos1+1);
- strncpy(Curl->protocol, escfilename, pos1);
if( Curl->protocol==NULL ) {
mp_msg(MSGT_NETWORK,MSGL_FATAL,"Memory allocation failed!\n");
url_free(Curl);
return NULL;
}
+ strncpy(Curl->protocol, escfilename, pos1);
Curl->protocol[pos1] = '\0';
// jump the "://"
More information about the MPlayer-cvslog
mailing list