summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/input_http.c6
-rw-r--r--src/input/mmsh.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index c4eaa8eaa..da202607f 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -19,7 +19,7 @@
*
* input plugin for http network streams
*
- * $Id: input_http.c,v 1.81 2003/12/14 22:13:23 siggi Exp $
+ * $Id: input_http.c,v 1.82 2004/01/23 00:01:08 valtri Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -714,9 +714,9 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
if (linenum == 1) {
int httpver, httpsub;
- char httpstatus[BUFSIZE];
+ char httpstatus[51];
- if (sscanf(this->buf, "HTTP/%d.%d %d %[^\015\012]", &httpver, &httpsub,
+ if (sscanf(this->buf, "HTTP/%d.%d %d %50[^\015\012]", &httpver, &httpsub,
&httpcode, httpstatus) != 4) {
/* icecast ? */
diff --git a/src/input/mmsh.c b/src/input/mmsh.c
index 84e2beea7..425b957f8 100644
--- a/src/input/mmsh.c
+++ b/src/input/mmsh.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: mmsh.c,v 1.26 2003/12/09 00:02:30 f1rmb Exp $
+ * $Id: mmsh.c,v 1.27 2004/01/23 00:01:15 valtri Exp $
*
* MMS over HTTP protocol
* written by Thibaut Mattern
@@ -266,10 +266,10 @@ static int get_answer (mmsh_t *this) {
if (linenum == 1) {
int httpver, httpsub, httpcode;
- char httpstatus[100];
+ char httpstatus[51];
- if (sscanf(this->buf, "HTTP/%d.%d %d", &httpver, &httpsub,
- &httpcode) != 3) {
+ if (sscanf(this->buf, "HTTP/%d.%d %d %50[^\015\012]", &httpver, &httpsub,
+ &httpcode, httpstatus) != 4) {
xine_log (this->stream->xine, XINE_LOG_MSG,
_("libmmsh: bad response format\n"));
return 0;