blob: ce5cb30e968caa81bdf81e910f1075f0bc0c1284 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- vpnc-0.4.0.orig/config.c 2007-02-16 18:22:06.000000000 +0100
+++ vpnc-0.4.0/config.c 2008-10-16 12:55:57.000000000 +0200
@@ -485,7 +485,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;
}
|