File mod_fcgid.2.1-warnings.patch of Package apache2-mod_fcgid

Index: fcgid_conf.c
===================================================================
--- fcgid_conf.c.orig	2007-02-16 03:34:41.000000000 +0100
+++ fcgid_conf.c	2007-04-16 10:44:12.133414801 +0200
@@ -653,7 +653,7 @@ const char *set_wrapper_config(cmd_parms
 	/* Sanity check */
 	if (wrapperpath == NULL || extension == NULL
 		|| *extension != '.' || *(extension + 1) == '\0'
-		|| strchr(extension, '/') || strchr(extension, '\\'))
+		|| ap_strchr_c(extension, '/') || ap_strchr_c(extension, '\\'))
 		return "Invalid wrapper file extension";
 
 	/* Get wrapper_id base on wrapperpath */
@@ -712,7 +712,7 @@ const char *set_wrapper_config(cmd_parms
 
 fcgid_wrapper_conf *get_wrapper_info(const char *cgipath, request_rec * r)
 {
-	char *extension;
+	const char *extension;
 	fcgid_wrapper_conf *wrapper;
 	fcgid_dir_conf *config =
 		ap_get_module_config(r->per_dir_config, &fcgid_module);
openSUSE Build Service is sponsored by