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

Diff for /src/usr.bin/mandoc/roff.c between version 1.116 and 1.117

version 1.116, 2014/12/18 17:43:07 version 1.117, 2014/12/25 17:18:40
Line 19 
Line 19 
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
   #include <limits.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 655 
Line 656 
                 *stesc = '\0';                  *stesc = '\0';
                 buf->sz = mandoc_asprintf(&nbuf, "%s%s%s",                  buf->sz = mandoc_asprintf(&nbuf, "%s%s%s",
                     buf->buf, res, cp) + 1;                      buf->buf, res, cp) + 1;
   
                   if (buf->sz > SHRT_MAX) {
                           mandoc_msg(MANDOCERR_ROFFLOOP, r->parse,
                               ln, (int)(stesc - buf->buf), NULL);
                           return(ROFF_IGN);
                   }
   
                 /* Prepare for the next replacement. */                  /* Prepare for the next replacement. */
   

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.117