aboutsummaryrefslogtreecommitdiff
path: root/graphics/xfig/files/patch-src_u__ghostscript.c
blob: f58e18032e84507d43d1cb55e6daf364f847efd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/u_ghostscript.c.orig	2021-05-22 08:58:32 UTC
+++ src/u_ghostscript.c
@@ -805,12 +805,12 @@ display_presize(void *handle, void *device, int width,
 }
 
 static void *
-display_memalloc(void *handle, void *device, unsigned long size)
+display_memalloc(void *handle, void *device, size_t size)
 {
 	(void) device;
 	struct calldata	*data = (struct calldata *)handle;
 
-	data->img = malloc((size_t)size);
+	data->img = malloc(size);
 
 	if (appres.DEBUG && data->img == NULL)
 		fputs("gslib_bitmap() - display_memalloc(): Out of memory.\n",