diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/asf_streaming.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libmpdemux/asf_streaming.c b/libmpdemux/asf_streaming.c index 9eb7518203..efb89b543a 100644 --- a/libmpdemux/asf_streaming.c +++ b/libmpdemux/asf_streaming.c @@ -47,11 +47,8 @@ int asf_mmst_streaming_start( stream_t *stream ); 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 (!( |