mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Fix: Allow non-1-byte PATH_SEPARATOR in admin_send_response()
This commit is contained in:
parent
442960ac4a
commit
9fb26c4607
@ -323,11 +323,10 @@ void admin_send_response(xmlDocPtr doc,
|
||||
}
|
||||
if (response == ADMIN_FORMAT_TRANSFORMED) {
|
||||
char *fullpath_xslt_template;
|
||||
int fullpath_xslt_template_len;
|
||||
size_t fullpath_xslt_template_len;
|
||||
ice_config_t *config = config_get_config();
|
||||
|
||||
fullpath_xslt_template_len = strlen (config->adminroot_dir) +
|
||||
strlen (xslt_template) + 2;
|
||||
fullpath_xslt_template_len = strlen(config->adminroot_dir) + strlen(xslt_template) + strlen(PATH_SEPARATOR) + 1;
|
||||
fullpath_xslt_template = malloc(fullpath_xslt_template_len);
|
||||
snprintf(fullpath_xslt_template, fullpath_xslt_template_len, "%s%s%s",
|
||||
config->adminroot_dir, PATH_SEPARATOR, xslt_template);
|
||||
|
Loading…
Reference in New Issue
Block a user