Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
000a33b9
Commit
000a33b9
authored
Oct 25, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a couple of potential bad pointer type problems
svn path=/icecast/trunk/icecast/; revision=8095
parent
7e3c9bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/admin.c
src/admin.c
+2
-3
No files found.
src/admin.c
View file @
000a33b9
...
...
@@ -241,18 +241,17 @@ void admin_send_response(xmlDocPtr doc, client_t *client,
"Content-Length: %d
\r\n
"
"Content-Type: text/xml
\r\n
"
"
\r\n
"
,
len
);
html_write
(
client
,
buff
);
html_write
(
client
,
"%s"
,
buff
);
}
if
(
response
==
TRANSFORMED
)
{
config
=
config_get_config
();
adminwebroot
=
config
->
adminroot_dir
;
config_release_config
();
fullpath_xslt_template_len
=
strlen
(
adminwebroot
)
+
strlen
(
xslt_template
)
+
2
;
fullpath_xslt_template
=
malloc
(
fullpath_xslt_template_len
);
memset
(
fullpath_xslt_template
,
'\000'
,
fullpath_xslt_template_len
);
snprintf
(
fullpath_xslt_template
,
fullpath_xslt_template_len
,
"%s%s%s"
,
adminwebroot
,
PATH_SEPARATOR
,
xslt_template
);
config_release_config
();
html_write
(
client
,
"HTTP/1.0 200 OK
\r\n
"
"Content-Type: text/html
\r\n
"
"
\r\n
"
);
...
...
Write
Preview
Markdown
is supported
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