1.1 --- a/pdf.c Fri Feb 21 09:25:47 2003 +0000 1.2 +++ b/pdf.c Fri Feb 21 10:49:11 2003 +0000 1.3 @@ -4,7 +4,7 @@ 1.4 * will be compressed using ITU-T T.6 (G4) fax encoding. 1.5 * 1.6 * PDF routines 1.7 - * $Id: pdf.c,v 1.3 2003/02/20 04:44:17 eric Exp $ 1.8 + * $Id: pdf.c,v 1.4 2003/02/21 02:49:11 eric Exp $ 1.9 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.10 * 1.11 * This program is free software; you can redistribute it and/or modify 1.12 @@ -53,7 +53,7 @@ 1.13 1.14 struct pdf_pages *pdf_new_pages (pdf_file_handle pdf_file) 1.15 { 1.16 - struct pdf_pages *pages = pdf_calloc (sizeof (struct pdf_pages)); 1.17 + struct pdf_pages *pages = pdf_calloc (1, sizeof (struct pdf_pages)); 1.18 pages->kids = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_ARRAY)); 1.19 pages->count = pdf_new_integer (0); 1.20 pages->pages_dict = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_DICTIONARY)); 1.21 @@ -68,7 +68,7 @@ 1.22 { 1.23 pdf_file_handle pdf_file; 1.24 1.25 - pdf_file = pdf_calloc (sizeof (struct pdf_file)); 1.26 + pdf_file = pdf_calloc (1, sizeof (struct pdf_file)); 1.27 1.28 pdf_file->f = fopen (filename, "wb"); 1.29 if (! pdf_file->f) 1.30 @@ -154,7 +154,7 @@ 1.31 double width, 1.32 double height) 1.33 { 1.34 - pdf_page_handle page = pdf_calloc (sizeof (struct pdf_page)); 1.35 + pdf_page_handle page = pdf_calloc (1, sizeof (struct pdf_page)); 1.36 1.37 page->pdf_file = pdf_file; 1.38