Skip to content

Instantly share code, notes, and snippets.

@fabn
Created June 27, 2011 21:30
Show Gist options
  • Save fabn/1049889 to your computer and use it in GitHub Desktop.
Save fabn/1049889 to your computer and use it in GitHub Desktop.
Segmentation Fault in QRCode#save_png
#!/usr/bin/env ruby
require 'qrencoder'
result = "/tmp/qr.png"
qrcode = QREncoder.encode("a" * 2939)
qrcode.save_png result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment