Author: mladen.turk(a)jboss.com
Date: 2008-06-10 10:53:15 -0400 (Tue, 10 Jun 2008)
New Revision: 1684
Modified:
trunk/httpd/httpd-2.2/modules/advertise/mod_advertise.c
Log:
Use proper const string functions
Modified: trunk/httpd/httpd-2.2/modules/advertise/mod_advertise.c
===================================================================
--- trunk/httpd/httpd-2.2/modules/advertise/mod_advertise.c 2008-06-10 14:28:02 UTC (rev
1683)
+++ trunk/httpd/httpd-2.2/modules/advertise/mod_advertise.c 2008-06-10 14:53:15 UTC (rev
1684)
@@ -145,7 +145,7 @@
else
return "ServerAdvertise must be Off or On";
if (opt) {
- const char *p = strstr(opt, "://");
+ const char *p = ap_strstr_c(opt, "://");
if (p) {
ma_advertise_srvm = apr_pstrndup(cmd->pool, opt, p - opt);
opt = p + 3;
@@ -204,7 +204,7 @@
if (errs != NULL)
return errs;
- if ((p = strchr(arg, '.')) || (p = strchr(arg, ',')))
+ if ((p = ap_strchr_c(arg, '.')) || (p = ap_strchr_c(arg, ',')))
u = atoi(p + 1);
s = atoi(arg);
Show replies by date