Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/filemagic/filemagic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* Returns the magic version */
static VALUE
rb_magic_version(VALUE klass) {
char version[8] = "0";
char version[16] = "0";
#ifdef HAVE_MAGIC_VERSION
RB_MAGIC_SET_VERSION(magic_version() / 100, magic_version() % 100)
#endif
Expand Down Expand Up @@ -208,7 +208,7 @@ RB_MAGIC_APPRENTICE(compile)

void
Init_ruby_filemagic() {
char version[8] = "0";
char version[16] = "0";
cFileMagic = rb_define_class("FileMagic", rb_cObject);

#if defined(FILE_VERSION_MAJOR)
Expand Down