Commit 2a991af1 authored by Karl Heyes's avatar Karl Heyes
Browse files

unlikely to occur race, but fix it anyway

svn path=/icecast/trunk/icecast/; revision=7597
parent 69af6210
......@@ -222,12 +222,11 @@ char *util_get_path_from_normalised_uri(char *uri) {
ice_config_t *config = config_get_config();
webroot = config->webroot_dir;
fullpath = malloc(strlen(uri) + strlen(webroot) + 1);
strcpy(fullpath, webroot);
strcat(fullpath, uri);
if (fullpath)
sprintf (fullpath, "%s%s", webroot, uri);
return fullpath;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment