Index: asf_streaming.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/asf_streaming.c,v retrieving revision 1.41 diff -u -r1.41 asf_streaming.c --- asf_streaming.c 25 Sep 2003 00:36:04 -0000 1.41 +++ asf_streaming.c 23 Oct 2003 12:23:34 -0000 @@ -502,11 +502,11 @@ return NULL; } http_set_uri( http_hdr, server_url->url ); - sprintf( str, "Host: %.220s:%d", server_url->hostname, server_url->port ); + snprintf( str, sizeof(str)-1, "Host: %s:%d", server_url->hostname, server_url->port ); url_free( server_url ); } else { http_set_uri( http_hdr, url->file ); - sprintf( str, "Host: %.220s:%d", url->hostname, url->port ); + snprintf( str, sizeof(str)-1, "Host: %s:%d", url->hostname, url->port ); } http_set_field( http_hdr, str );