Browse Source

Always use binary mode for magic files

experimental/threaded
Moriyoshi Koizumi 24 years ago
parent
commit
90317cbc5d
  1. 2
      ext/mime_magic/mime_magic.c

2
ext/mime_magic/mime_magic.c

@ -348,7 +348,7 @@ static int apprentice(void)
magic_server_config_rec *conf = &mime_global;
fname = conf->magicfile; /* todo cwd? */
f = fopen(fname, "rt");
f = fopen(fname, "rb");
if (f == NULL) {
(int) conf->magic = -1;
return -1;

Loading…
Cancel
Save