Skip to content

Commit bafd88c

Browse files
committed
Ensure variadic call is null-terminated
1 parent c7dda29 commit bafd88c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## master
44

5+
* fix `Image#add_alpha()` with libvips 8.16 [kleisauke]
6+
57
## Version 2.2.2 (2024-07-17)
68

79
* fix compat with unified (semistatic) libvips binaries [kleisauke]

lib/vips/image.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ def has_alpha?
973973
# @return [Image] new image
974974
def add_alpha
975975
ptr = GenericPtr.new
976-
result = Vips.vips_addalpha self, ptr
976+
result = Vips.vips_addalpha self, ptr, :pointer, nil
977977
raise Vips::Error if result != 0
978978

979979
Vips::Image.new ptr[:value]

0 commit comments

Comments
 (0)