From e15ed4c7b920450408905f0d1e40e09eb74ccf29 Mon Sep 17 00:00:00 2001 From: tbbulloc Date: Fri, 26 Jan 2007 06:54:37 +0000 Subject: [PATCH] changed a sprintf call to the more secure snprintf --- httperf/src/gen/wsesslog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httperf/src/gen/wsesslog.c b/httperf/src/gen/wsesslog.c index 9789b09..421ca55 100755 --- a/httperf/src/gen/wsesslog.c +++ b/httperf/src/gen/wsesslog.c @@ -553,7 +553,8 @@ parse_config (void) if ((sptr->current_req->contents_len = strlen (contents)) != 0) { sptr->current_req->contents = strdup (contents); - sprintf (sptr->current_req->extra_hdrs, + snprintf (sptr->current_req->extra_hdrs, + sizeof(sptr->current_req->extra_hdrs), "Content-length: %d\r\n", sptr->current_req->contents_len); sptr->current_req->extra_hdrs_len =