[xiph-cvs] cvs commit: vorbis-tools/oggenc utf8.c
Michael Smith
msmith at xiph.org
Sat Jul 7 20:04:36 PDT 2001
msmith 01/07/07 20:04:36
Modified: oggenc utf8.c
Log:
Fix allocation bug.
Revision Changes Path
1.2 +1 -1 vorbis-tools/oggenc/utf8.c
Index: utf8.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/utf8.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- utf8.c 2001/07/02 09:39:10 1.1
+++ utf8.c 2001/07/08 03:04:35 1.2
@@ -123,7 +123,7 @@
int index = 0;
unsigned char c;
- unicode = malloc((strlen(from) * sizeof(int)) + 1);
+ unicode = malloc((strlen(from) + 1) * sizeof(short));
map = get_map(encoding);
--- >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