Skip to content

Commit 8071a77

Browse files
committed
eye-d3: update fix
1 parent 6876969 commit 8071a77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Formula/e/eye-d3.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class EyeD3 < Formula
3333
def install
3434
# Fix to error: SystemError: buffer overflow
3535
# Issue ref: https://github.com/nicfit/eyeD3/issues/680
36-
inreplace "eyed3/utils/console.py", "'\\0'", "b'\\\\0'"
36+
inreplace "eyed3/utils/console.py" do |s|
37+
s.gsub! "'\\0' * 4", "b'\\\\0' * 8"
38+
s.gsub! 'hw = struct.unpack("hh", data)', 'hw = struct.unpack("hhhh", data)'
39+
end
3740

3841
virtualenv_install_with_resources
3942
doc.install Dir["docs/*"]

0 commit comments

Comments
 (0)