Skip to content

Commit

Permalink
Ensure variadic call is null-terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Nov 4, 2024
1 parent c7dda29 commit bafd88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master

* fix `Image#add_alpha()` with libvips 8.16 [kleisauke]

## Version 2.2.2 (2024-07-17)

* fix compat with unified (semistatic) libvips binaries [kleisauke]
Expand Down
2 changes: 1 addition & 1 deletion lib/vips/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ def has_alpha?
# @return [Image] new image
def add_alpha
ptr = GenericPtr.new
result = Vips.vips_addalpha self, ptr
result = Vips.vips_addalpha self, ptr, :pointer, nil
raise Vips::Error if result != 0

Vips::Image.new ptr[:value]
Expand Down

0 comments on commit bafd88c

Please sign in to comment.