[xiph-cvs] cvs commit: libshout/src util.c
Brendan
brendan at xiph.org
Sun Mar 9 00:25:06 PST 2003
brendan 03/03/09 03:25:06
Modified: src util.c
Log:
Make room for terminating null.
Revision Changes Path
1.12 +1 -1 libshout/src/util.c
Index: util.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/util.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- util.c 8 Mar 2003 16:05:38 -0000 1.11
+++ util.c 9 Mar 2003 08:25:06 -0000 1.12
@@ -111,7 +111,7 @@
if (!isalnum((int)*p))
n += 2;
}
- if (!(dest = malloc(n)))
+ if (!(dest = malloc(n+1)))
return NULL;
for (p = data, q = dest; *p; p++, q++) {
<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