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

Diff for /src/usr.bin/file/magic-test.c between version 1.16 and 1.17

version 1.16, 2016/02/20 15:29:37 version 1.17, 2016/04/30 21:10:28
Line 936 
Line 936 
   
         result = (regexec(&re, ms->base, 1, &m, REG_STARTEND) == 0);          result = (regexec(&re, ms->base, 1, &m, REG_STARTEND) == 0);
         if (result == !ml->test_not) {          if (result == !ml->test_not) {
                 if (ml->result != NULL)                  if (ml->result != NULL) {
                         magic_add_result(ms, ml, "%s", "");                          magic_add_string(ms, ml, ms->base + m.rm_so,
                               m.rm_eo - m.rm_so);
                   }
                 if (result) {                  if (result) {
                         if (sflag)                          if (sflag)
                                 ms->offset = m.rm_so;                                  ms->offset = m.rm_so;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17