From: Christos Zoulas Date: Tue, 26 Feb 2013 21:02:48 +0000 (+0000) Subject: allow octal formats X-Git-Tag: FILE5_14~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79fa639b7f8fc15dc7f9e1862a09441f744db6ef;p=file allow octal formats --- diff --git a/src/apprentice.c b/src/apprentice.c index 8a7fa326..2a446892 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.189 2013/01/11 16:45:23 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.190 2013/02/17 22:29:40 christos Exp $") #endif /* lint */ #include "magic.h" @@ -2078,6 +2078,7 @@ check_format_type(const char *ptr, int type) case 'i': case 'd': case 'u': + case 'o': case 'x': case 'X': return 0; @@ -2092,6 +2093,7 @@ check_format_type(const char *ptr, int type) case 'i': case 'd': case 'u': + case 'o': case 'x': case 'X': return 0; @@ -2108,6 +2110,7 @@ check_format_type(const char *ptr, int type) case 'c': case 'd': case 'u': + case 'o': case 'x': case 'X': return 0;