[xiph-cvs] cvs commit: vorbis-tools/oggenc utf8.c

Michael Smith msmith at xiph.org
Sat Jul 7 20:09:47 PDT 2001



msmith      01/07/07 20:09:47

  Modified:    oggenc   utf8.c
  Log:
  Oops. That'll teach me to only read half of a bug report.

Revision  Changes    Path
1.3       +1 -1      vorbis-tools/oggenc/utf8.c

Index: utf8.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/utf8.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- utf8.c	2001/07/08 03:04:35	1.2
+++ utf8.c	2001/07/08 03:09:46	1.3
@@ -123,7 +123,7 @@
         int index = 0;
         unsigned char c;
         
-	unicode = malloc((strlen(from) + 1) * sizeof(short));
+	unicode = calloc((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