[BACK]Return to read.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/read.c between version 1.129 and 1.130

version 1.129, 2015/03/02 14:50:17 version 1.130, 2015/03/10 14:17:52
Line 636  read_whole_file(struct mparse *curp, const char *file,
Line 636  read_whole_file(struct mparse *curp, const char *file,
          */           */
   
         if (S_ISREG(st.st_mode)) {          if (S_ISREG(st.st_mode)) {
                 if (st.st_size >= (1U << 31)) {                  if ((size_t)st.st_size >= (1U << 31)) {
                         mandoc_msg(MANDOCERR_TOOLARGE, curp, 0, 0, NULL);                          mandoc_msg(MANDOCERR_TOOLARGE, curp, 0, 0, NULL);
                         return(0);                          return(0);
                 }                  }

Legend:
Removed from v.1.129  
changed lines
  Added in v.1.130

CVSweb