ruby-filemagic icon indicating copy to clipboard operation
ruby-filemagic copied to clipboard

Fixed "note:" output when compiling filemagic.c

Open joast opened this issue 3 years ago • 0 comments

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.

joast avatar Sep 16 '22 02:09 joast