From: Christos Zoulas Date: Mon, 28 Apr 2014 14:09:07 +0000 (+0000) Subject: Add missing specifiers for %h? X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b295a340005948f0642a54b893e3266636dd5920;p=file Add missing specifiers for %h? --- diff --git a/src/apprentice.c b/src/apprentice.c index 9d64f57d..97701a3c 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.204 2014/04/17 12:44:01 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.205 2014/04/28 14:09:07 christos Exp $") #endif /* lint */ #include "magic.h" @@ -2187,14 +2187,19 @@ check_format_type(const char *ptr, int type) default: return -1; } + case 'i': case 'd': + case 'u': + case 'o': + case 'x': + case 'X': return 0; default: return -1; } - case 'i': case 'c': + case 'i': case 'd': case 'u': case 'o':