Browse Source

(_ps_files_path_create) terminate string correctly and append the whole key instead of the rest key

PHP-4.0.5
Sascha Schumann 27 years ago
parent
commit
75db7e91c6
  1. 3
      ext/session/mod_files.c

3
ext/session/mod_files.c

@ -105,8 +105,9 @@ static char *_ps_files_path_create(char *buf, size_t buflen, ps_files *data, con
buf[n++] = *p++;
buf[n++] = DIR_DELIMITER;
}
buf[n] = '\0';
strcat(buf, FILE_PREFIX);
strcat(buf, p);
strcat(buf, key);
return buf;
}

Loading…
Cancel
Save