aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-25 14:57:01 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-25 14:57:01 +0000
commit8224d571465edff96755957bbdb25e7491ce91e8 (patch)
tree9e55856068bae333c904e3de4c54aab47a186326 /libmpdemux
parentf7d64b75ecef182743414ec7df1f9c6211269d28 (diff)
uber 10l found by Ilia <chest4l at mail.ru>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12638 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/url.c b/libmpdemux/url.c
index d6303f32ab..1f9d0d56cb 100644
--- a/libmpdemux/url.c
+++ b/libmpdemux/url.c
@@ -79,12 +79,12 @@ url_new(const char* url) {
}
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 "://"