[gs-cvs] rev 6992 - trunk/gs/src
giles at ghostscript.com
giles at ghostscript.com
Mon Aug 14 15:47:33 PDT 2006
Author: giles
Date: 2006-08-14 15:47:33 -0700 (Mon, 14 Aug 2006)
New Revision: 6992
Modified:
trunk/gs/src/mkromfs.c
Log:
Fix a type size issue that prevented mkromfs from running correctly on
64 bit machines. Bug 688792.
Modified: trunk/gs/src/mkromfs.c
===================================================================
--- trunk/gs/src/mkromfs.c 2006-08-14 22:08:43 UTC (rev 6991)
+++ trunk/gs/src/mkromfs.c 2006-08-14 22:47:33 UTC (rev 6992)
@@ -371,8 +371,8 @@
fseek(in, 0, SEEK_END);
node->length = ftell(in);
blocks = (node->length+ROMFS_BLOCKSIZE-1) / ROMFS_BLOCKSIZE + 1;
- node->data_lengths = calloc(blocks, sizeof(unsigned int));
- node->data = calloc(blocks, sizeof(unsigned char *));
+ node->data_lengths = calloc(blocks, sizeof(*node->data_lengths));
+ node->data = calloc(blocks, sizeof(*node->data));
fclose(in);
in = fopen(found_path, "rb");
block = 0;
More information about the gs-cvs
mailing list