diff options
Diffstat (limited to 'upstream.patch')
| -rw-r--r-- | upstream.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/upstream.patch b/upstream.patch new file mode 100644 index 0000000..8ce691c --- /dev/null +++ b/upstream.patch @@ -0,0 +1,26 @@ +From 57b759ff26257c956f799b5c1bfe276688913e88 Mon Sep 17 00:00:00 2001 +From: Kleis Auke Wolthuizen <github@kleisauke.nl> +Date: Tue, 9 Dec 2025 20:20:06 +0100 +Subject: [PATCH] Fix build against GraphicsMagick (#4798) + +GraphicsMagick does not provide the `MagickPathExtent` definition, +use `MaxPathExtent` instead. + +Resolves: #4796. +--- + libvips/foreign/magick6load.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libvips/foreign/magick6load.c b/libvips/foreign/magick6load.c +index b809fae301..83055b7492 100644 +--- a/libvips/foreign/magick6load.c ++++ b/libvips/foreign/magick6load.c +@@ -1120,7 +1120,7 @@ vips_foreign_load_magick_source_header(VipsForeignLoad *load) + const char *filename = + vips_connection_filename(VIPS_CONNECTION(magick_source->source)); + +- g_strlcpy(magick->image_info->filename, filename, MagickPathExtent); ++ g_strlcpy(magick->image_info->filename, filename, MaxPathExtent); + magick_sniff_file(magick->image_info, filename); + magick->image = ReadImage(magick->image_info, magick->exception); + } |
