summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2004-12-30 20:23:37 +0000
committerHenry Stiles <henry.stiles@artifex.com>2004-12-30 20:23:37 +0000
commit3862e2a02b814775a8f67c605feb59912d8e8afd (patch)
treedb6726c62d3beaa5004514d370c506f62900e716
parent319092413f3dc6f42f8b07d8b367c719cda1d542 (diff)
Null pad bitmap font downloads and warning fix.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2166 06663e23-700e-0410-b217-a244a6096597
-rw-r--r--pcl/pcsfont.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcl/pcsfont.c b/pcl/pcsfont.c
index 4fe3e454a..e819377a8 100644
--- a/pcl/pcsfont.c
+++ b/pcl/pcsfont.c
@@ -591,6 +591,7 @@ pcl_character_data(pcl_args_t *pargs, pcl_state_t *pcs)
if ( char_data == 0 ) {
char_data = gs_alloc_bytes(pcs->memory, font_data_size,
"pcl_character_data");
+ memset(char_data, 0, font_data_size);
if ( char_data == 0 )
return_error(pcs->memory, e_Memory);
/* if count > font_data_size extra data is ignored */
@@ -631,7 +632,7 @@ typedef enum resource_type_enum {
on disk and add the macro to the macro dictionary */
private void *
pcl_find_resource(pcl_state_t *pcs,
- byte string_id[],
+ const byte string_id[],
int string_id_size,
resource_type_t resource_type
)