1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

unlikely to occur race, but fix it anyway

svn path=/icecast/trunk/icecast/; revision=7597
This commit is contained in:
Karl Heyes 2004-08-20 22:59:09 +00:00
parent 69af6210c0
commit 2a991af1a6

View File

@ -222,12 +222,11 @@ char *util_get_path_from_normalised_uri(char *uri) {
ice_config_t *config = config_get_config();
webroot = config->webroot_dir;
config_release_config();
fullpath = malloc(strlen(uri) + strlen(webroot) + 1);
strcpy(fullpath, webroot);
strcat(fullpath, uri);
if (fullpath)
sprintf (fullpath, "%s%s", webroot, uri);
config_release_config();
return fullpath;
}