patch-config_c 447 B

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