[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.22 and 1.23

version 1.22, 2016/05/01 10:56:03 version 1.23, 2016/05/01 14:57:15
Line 638 
Line 638 
         ml->type_operator = ' ';          ml->type_operator = ' ';
         ml->type_operand = 0;          ml->type_operand = 0;
   
         if (strncmp(s, "name", (sizeof "name") - 1) == 0) {          if (strcmp(s, "name") == 0) {
                 ml->type = MAGIC_TYPE_NAME;                  ml->type = MAGIC_TYPE_NAME;
                 ml->type_string = xstrdup(s);                  ml->type_string = xstrdup(s);
                 goto done;                  goto done;
         }          }
         if (strncmp(s, "use", (sizeof "use") - 1) == 0) {          if (strcmp(s, "use") == 0) {
                 ml->type = MAGIC_TYPE_USE;                  ml->type = MAGIC_TYPE_USE;
                 ml->type_string = xstrdup(s);                  ml->type_string = xstrdup(s);
                 goto done;                  goto done;

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23