freebsd-ports/graphics/xfig/files/patch-src_u__ghostscript.c
Fernando Apesteguía a77d20836a graphics/xfig: update to 3.2.8b
ChangeLog: https://sourceforge.net/p/mcj/xfig/ci/master/tree/CHANGES

This update also fixes the build in 14.

BUGS FIXED:
 * Adding points to splines works if boxes are present in the figure.
 * Stay in the working directory when browsing picture files.

PR:		273130
Reported by:	mjl@luckie.org.nz (maintainer)
2023-08-17 14:33:21 +02:00

17 lines
547 B
C

--- 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",