]> granicus.if.org Git - file/commitdiff
allow octal formats
authorChristos Zoulas <christos@zoulas.com>
Tue, 26 Feb 2013 21:02:48 +0000 (21:02 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 26 Feb 2013 21:02:48 +0000 (21:02 +0000)
src/apprentice.c

index 8a7fa3265c9859dbd2afdd64c90d5787d8d327a8..2a446892532b29e1147e9c1755abd796b10a1c55 100644 (file)
@@ -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;