Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bafd88c

Browse files
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /