[BACK]Return to magic-load.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / file

Diff for /src/usr.bin/file/magic-load.c between version 1.5 and 1.6

version 1.5, 2015/05/29 14:15:41 version 1.6, 2015/07/08 17:47:15
Line 549 
Line 549 
   
         if (*s == '.') {          if (*s == '.') {
                 s++;                  s++;
                 if (strchr("bslBSL", *s) == NULL) {                  if (*s == '\0' || strchr("bslBSL", *s) == NULL) {
                         magic_warn(ml, "unknown offset type");                          magic_warn(ml, "unknown offset type");
                         goto fail;                          goto fail;
                 }                  }
Line 559 
Line 559 
                         goto done;                          goto done;
         }          }
   
         if (strchr("+-*", *s) == NULL) {          if (*s == '\0' || strchr("+-*", *s) == NULL) {
                 magic_warn(ml, "unknown offset operator");                  magic_warn(ml, "unknown offset operator");
                 goto fail;                  goto fail;
         }          }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6