From cf2ed9c0e18776f27c68e94aaf45af6c1b02fb2d Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Tue, 20 May 2003 14:05:36 +0000 Subject: fix possible buffer overflow reported by Steve Freeland CVS patchset: 4885 CVS date: 2003/05/20 14:05:36 --- src/input/input_http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3