[BACK]Return to dbm_map.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/dbm_map.c between version 1.2 and 1.3

version 1.2, 2016/08/22 16:05:56 version 1.3, 2016/08/30 21:36:54
Line 133 
Line 133 
 dbm_get(int32_t offset)  dbm_get(int32_t offset)
 {  {
         offset = be32toh(offset);          offset = be32toh(offset);
         if (offset < 0 || offset >= max_offset) {          if (offset < 0) {
                   warnx("dbm_get: Database corrupt: offset %d", offset);
                   return NULL;
           }
           if (offset >= max_offset) {
                 warnx("dbm_get: Database corrupt: offset %d > %d",                  warnx("dbm_get: Database corrupt: offset %d > %d",
                     offset, max_offset);                      offset, max_offset);
                 return NULL;                  return NULL;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3