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

Diff for /mandoc/mandoc.c between version 1.50 and 1.51

version 1.50, 2011/05/14 16:06:09 version 1.51, 2011/05/14 17:54:42
Line 704  mandoc_strntou(const char *p, size_t sz, int base)
Line 704  mandoc_strntou(const char *p, size_t sz, int base)
                 return(-1);                  return(-1);
   
         memcpy(buf, p, sz);          memcpy(buf, p, sz);
         buf[sz] = '\0';          buf[(int)sz] = '\0';
   
         errno = 0;          errno = 0;
         v = strtol(buf, &ep, base);          v = strtol(buf, &ep, base);

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

CVSweb