diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-05-20 14:05:36 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-05-20 14:05:36 +0000 |
commit | cf2ed9c0e18776f27c68e94aaf45af6c1b02fb2d (patch) | |
tree | 62deee59d6bf3a865329253ca3980177150446db /src/input/input_http.c | |
parent | 4fe83b4556b282303b3e8b0ffef38c31a1a34a27 (diff) | |
download | xine-lib-cf2ed9c0e18776f27c68e94aaf45af6c1b02fb2d.tar.gz xine-lib-cf2ed9c0e18776f27c68e94aaf45af6c1b02fb2d.tar.bz2 |
fix possible buffer overflow reported by Steve Freeland
CVS patchset: 4885
CVS date: 2003/05/20 14:05:36
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r-- | src/input/input_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c index 5580ab825..09b058a43 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -699,13 +699,13 @@ static int http_plugin_open (input_plugin_t *this_gen ) { { char buf[256]; - sprintf (buf, _("input_http: opening >/%s< on host >%s<"), + snprintf (buf, 255, _("input_http: opening >/%s< on host >%s<"), this->filename, this->host); if (proxy != NULL) - sprintf(buf, _("%s via proxy >%s<"), buf, this->proxyhost); + snprintf(buf, 255, _("%s via proxy >%s<"), buf, this->proxyhost); - sprintf(buf, "%s\n", buf); + snprintf(buf, 255, "%s\n", buf); #ifdef LOG printf (buf); |