1
0

patch-config_c 497 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- vpnc-0.4.0.orig/config.c 2007-02-16 18:22:06.000000000 +0100
  3. +++ vpnc-0.4.0/config.c 2008-10-16 12:55:57.000000000 +0200
  4. @@ -485,7 +485,7 @@ static char *get_config_filename(const c
  5. {
  6. char *realname;
  7. - asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
  8. + asprintf(&realname, "%s%s%s", strchr(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
  9. return realname;
  10. }