blackwinter / ruby-filemagic

Ruby bindings to the magic(4) library, revised.
https://blackwinter.github.iom/ruby-filemagic
146 stars 34 forks source link

Fixed "note:" output when compiling filemagic.c #39

Open joast opened 1 year ago

joast commented 1 year ago

Increased version string temporary buffers from 8 to 16 bytes to suppress the following note, and 17 or 18 other lines of output, when compiling filemagic.c:

note: ‘sprintf’ output between 5 and 14 bytes into a destination of size 8

Update: I was using a few different versions of gcc. Tested with a few versions of clang and got similar warnings.