[xiph-cvs] cvs commit: icecast/src source.c
Michael Smith
msmith at xiph.org
Tue Mar 18 23:55:42 PST 2003
msmith 03/03/19 02:55:42
Modified: src source.c
Log:
Fix lack of null terminator in audio info/stats stuff.
Revision Changes Path
1.45 +1 -0 icecast/src/source.c
Index: source.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/source.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- source.c 15 Mar 2003 02:10:17 -0000 1.44
+++ source.c 19 Mar 2003 07:55:42 -0000 1.45
@@ -685,6 +685,7 @@
if (pvar) {
variable = (char *)malloc(pvar-token+1);
strncpy(variable, token, pvar-token);
+ variable[pvar-token] = 0;
pvar++;
if (strlen(pvar)) {
value = util_url_unescape(pvar);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list