SG(request_info).path_translated &&
*SG(request_info).path_translated
) {
- strcpy(local_open_basedir, SG(request_info).path_translated);
+ strlcpy(local_open_basedir, SG(request_info).path_translated, sizeof(local_open_basedir));
local_open_basedir_pos = strlen(local_open_basedir) - 1;
/* Strip filename */
}
} else {
/* Else use the unmodified path */
- strcpy(local_open_basedir, basedir);
+ strlcpy(local_open_basedir, basedir, sizeof(local_open_basedir));
}
/* Resolve the real path into resolved_name */
}
if (!strncasecmp(tmp_line, "Location: ", 10)) {
- strcpy(location, tmp_line + 10);
+ strlcpy(location, tmp_line + 10, sizeof(location));
}
if (tmp_line[0] == '\0') {