From 162eccade2b36f0e02c5892ca67e5541f28b3d9f Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Tue, 2 Apr 2013 21:14:10 +0000 Subject: [PATCH] Use apr_psprintf(... "%pm"...) instead of explicit call to apr_strerror git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463754 13f79535-47bb-0310-9956-ffa450edef68 --- modules/aaa/mod_authz_host.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/aaa/mod_authz_host.c b/modules/aaa/mod_authz_host.c index 9087676173..f4d5c41cb8 100644 --- a/modules/aaa/mod_authz_host.c +++ b/modules/aaa/mod_authz_host.c @@ -131,10 +131,8 @@ static const char *ip_parse_config(cmd_parms *cmd, return apr_psprintf(p, "ip address '%s' appears to be invalid", w); } else if (rv != APR_SUCCESS) { - char msgbuf[120]; - apr_strerror(rv, msgbuf, sizeof msgbuf); - return apr_psprintf(p, "ip address '%s' appears to be invalid: %s", - w, msgbuf); + return apr_psprintf(p, "ip address '%s' appears to be invalid: %pm", + w, &rv); } if (parsed_subnets) -- 2.50.1