[xiph-cvs] cvs commit: theora/lib comment.c
Mauricio Piacentini
mauricio at xiph.org
Wed May 21 12:31:47 PDT 2003
mauricio 03/05/21 15:31:47
Modified: lib comment.c
Log:
change alloca to ogg_malloc for windows compatibility without conditional compilation
Revision Changes Path
1.4 +3 -2 theora/lib/comment.c
Index: comment.c
===================================================================
RCS file: /usr/local/cvsroot/theora/lib/comment.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- comment.c 12 May 2003 22:23:03 -0000 1.3
+++ comment.c 21 May 2003 19:31:47 -0000 1.4
@@ -11,7 +11,7 @@
********************************************************************
function: read/write and client interface for comment header packet
- last mod: $Id: comment.c,v 1.3 2003/05/12 22:23:03 mauricio Exp $
+ last mod: $Id: comment.c,v 1.4 2003/05/21 19:31:47 mauricio Exp $
********************************************************************/
@@ -61,7 +61,7 @@
long i;
int found = 0;
int taglen = strlen(tag)+1; /* +1 for the = we append */
- char *fulltag = alloca(taglen+ 1);
+ char *fulltag = _ogg_malloc(taglen+ 1);
strcpy(fulltag, tag);
strcat(fulltag, "=");
@@ -75,6 +75,7 @@
found++;
}
}
+ _ogg_free(fulltag);
return NULL; /* didn't find anything */
}
<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