Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
2a991af1
Commit
2a991af1
authored
Aug 20, 2004
by
Karl Heyes
Browse files
unlikely to occur race, but fix it anyway
svn path=/icecast/trunk/icecast/; revision=7597
parent
69af6210
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util.c
View file @
2a991af1
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment