forked from Lainports/freebsd-ports
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)
17 lines
547 B
C
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",
|