]> 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 9d64f57d29e7d5fb706ee7428b491afd4104b7cb..97701a3cf0c91ad2b497931c7a1ee2088e79978c 100644 (file)
@@ -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':