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

Diff for /mandoc/roff.c between version 1.72 and 1.73

version 1.72, 2010/05/15 22:22:51 version 1.73, 2010/05/15 22:28:22
Line 349  roff_new_ig(ROFF_ARGS)
Line 349  roff_new_ig(ROFF_ARGS)
          * Merry fucking Christmas.           * Merry fucking Christmas.
          */           */
   
         r->last->end = malloc((size_t)i - ppos + 1);          r->last->end = malloc((size_t)(i - ppos) + 1);
         if (NULL == r->last->end) {          if (NULL == r->last->end) {
                 (*r->msg)(MANDOCERR_MEM, r->data, ln, ppos, NULL);                  (*r->msg)(MANDOCERR_MEM, r->data, ln, ppos, NULL);
                 return(ROFF_ERR);                  return(ROFF_ERR);
         }          }
   
         memcpy(r->last->end, &(*bufp)[ppos], (size_t)i - ppos);          memcpy(r->last->end, &(*bufp)[ppos], (size_t)(i - ppos));
         r->last->end[(size_t)i - ppos] = '\0';          r->last->end[i - ppos] = '\0';
   
         return(ROFF_IGN);          return(ROFF_IGN);
 }  }

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

CVSweb