From 9ca34a322420df118f51d55b7a6659eeb08cb07b Mon Sep 17 00:00:00 2001 From: brenosilva Date: Mon, 11 Apr 2011 14:56:05 +0000 Subject: [PATCH] Change apr_cpystr to strncpy --- apache2/apache2_io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apache2/apache2_io.c b/apache2/apache2_io.c index b935c959..ffc1cef4 100644 --- a/apache2/apache2_io.c +++ b/apache2/apache2_io.c @@ -588,8 +588,7 @@ static int flatten_response_body(modsec_rec *msr) { } memset(msr->stream_output_data, 0, msr->stream_output_length+1); - - apr_cpystrn(msr->stream_output_data,msr->resbody_data,msr->stream_output_length); + strncpy(msr->stream_output_data, msr->resbody_data, msr->stream_output_length); msr->stream_output_data[msr->stream_output_length] = '\0'; }