From 894fa3c97712a0f521b1d7bb606bd935e95b5e4e Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 28 Apr 2014 14:09:07 +0000 Subject: [PATCH] Add missing specifiers for %h? --- src/apprentice.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/apprentice.c b/src/apprentice.c index 03bf659a..c95c28ca 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.203 2014/04/01 15:57:28 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.204 2014/04/17 12:44:01 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': -- 2.40.0