Permalink
Browse files

Gotta read as binary

  • Loading branch information...
1 parent f679a08 commit fc9ddb496bf7be3edf0a5d789cb7f17b50661be5 @lawso017 committed Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zbar/image.rb
View
@@ -67,7 +67,7 @@ def set_data(format, data, width=nil, height=nil)
# Note the @buffer jog: it's to keep Ruby GC from losing the last
# reference to the old @buffer before calling image_set_data.
- # new_buffer = FFI::MemoryPointer.from_string(data)
+ new_buffer = FFI::MemoryPointer.from_string(data)
ZBar.zbar_image_set_data(@img, data, data.size, nil)
@buffer = new_buffer

0 comments on commit fc9ddb4

Please sign in to comment.