]> granicus.if.org Git - file/commitdiff
Add missing specifiers for %h?
authorChristos Zoulas <christos@zoulas.com>
Mon, 28 Apr 2014 14:09:07 +0000 (14:09 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 28 Apr 2014 14:09:07 +0000 (14:09 +0000)
src/apprentice.c

index 03bf659ab28ecfae951a7121d89c13e9d45dbfcc..c95c28ca4aaf073d2cc32cc000859acb24220c7c 100644 (file)
@@ -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':