summaryrefslogtreecommitdiff
path: root/package/vpnc/patches/patch-config_c
blob: 9dfbdee43d9de3353bb28eccb1ea24a7e15fcfee (plain)
1
2
3
4
5
6
7
8
9
10
11
--- vpnc-0.5.3.orig/config.c	2008-11-19 21:36:12.000000000 +0100
+++ vpnc-0.5.3/config.c	2010-02-06 04:35:05.394334473 +0100
@@ -456,7 +456,7 @@ static char *get_config_filename(const c
 {
 	char *realname;
 	
-	asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
+	asprintf(&realname, "%s%s%s", strchr(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
 	return realname;
 }