You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2011/04/20 18:17:44 UTC
svn commit: r1095448 - /httpd/httpd/trunk/server/util_pcre.c
Author: jorton
Date: Wed Apr 20 16:17:44 2011
New Revision: 1095448
URL: http://svn.apache.org/viewvc?rev=1095448&view=rev
Log:
* server/util_pcre.c (ap_regerror): Use passed-in buffer size rather
than the size of a pointer.
Modified:
httpd/httpd/trunk/server/util_pcre.c
Modified: httpd/httpd/trunk/server/util_pcre.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_pcre.c?rev=1095448&r1=1095447&r2=1095448&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_pcre.c (original)
+++ httpd/httpd/trunk/server/util_pcre.c Wed Apr 20 16:17:44 2011
@@ -82,7 +82,7 @@ addlength = (preg != NULL && (int)preg->
if (errbuf_size > 0)
{
if (addlength > 0 && errbuf_size >= length + addlength)
- apr_snprintf(errbuf, sizeof errbuf,
+ apr_snprintf(errbuf, errbuf_size,
"%s%s%-6d", message, addmessage, (int)preg->re_erroffset);
else
apr_cpystrn(errbuf, message, errbuf_size);