changeset 12878:ed7d73d336ad

removing broken and unneeded copy
author alex
date Wed, 21 Jul 2004 10:10:32 +0000
parents e427e3cc26c1
children 542d1d2200c1
files libmpdemux/asf_streaming.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asf_streaming.c	Wed Jul 21 08:54:39 2004 +0000
+++ b/libmpdemux/asf_streaming.c	Wed Jul 21 10:10:32 2004 +0000
@@ -47,11 +47,8 @@
 
 int
 asf_streaming_start( stream_t *stream, int *demuxer_type) {
-	char proto_s[10];
-	int protolen, fd = -1;
-	
-	strncpy( proto_s, stream->streaming_ctrl->url->protocol, 10 );
-    protolen=strlen(proto_s);
+    char *proto_s = stream->streaming_ctrl->url->protocol;
+    int protolen = strlen(proto_s), fd = -1;
 
     // Is protocol even valid mms,mmsu,mmst,http,http_proxy?
     if (!(