Open GoogleCodeExporter opened 8 years ago
--- fontdata.c (revision 1221)
+++ fontdata.c (working copy)
@@ -244,7 +244,7 @@
if((thiz->data_size + size) >= thiz->data_buffer_size)
{
size_t data_buffer_size = thiz->data_buffer_size + (thiz->data_buffer_size >> 1) + (size << 4);
- unsigned char* data = (unsigned
char*)FTK_REALLOC(thiz->data, data_buffer_size);
+ unsigned char* data = (unsigned
char*)FTK_REALLOC(thiz->data, data_buffer_size ? data_buffer_size : 1);
if(data != NULL)
{
thiz->data = data;
Original comment by andy.xie...@gmail.com
on 24 Apr 2013 at 4:29
Attachments:
Original issue reported on code.google.com by
andy.xie...@gmail.com
on 24 Apr 2013 at 4:28