[MPlayer-dev-eng] [PATCH] typo in url.c

Ilia chest4l at mail.ru
Thu Jun 24 06:33:10 CEST 2004


Hi, All!
Exploring the code of mplayer, during submitting my previous patch, I found a 
typo-like bug in url.c:
80	Curl->protocol = (char*)malloc(pos1+1);
	// THE FOLLOWING LINE SHOULD BE AFTER if STATEMENT
81	strncpy(Curl->protocol, escfilename, pos1); 
82	if( Curl->protocol==NULL ) {
83		mp_msg(MSGT_NETWORK,MSGL_FATAL,"Memory allocation failed!\n");
84 		url_free(Curl);
85 		return NULL;
86 	}

So, my little bugfix is attached :)

--
Ilia.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: url_c.patch
Type: text/x-diff
Size: 663 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040624/d5761b6d/attachment.patch>


More information about the MPlayer-dev-eng mailing list