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

Diff for /mandoc/roff.c between version 1.207 and 1.208

version 1.207, 2014/04/20 16:46:05 version 1.208, 2014/04/20 19:40:13
Line 488  roff_alloc(struct mparse *parse, int options)
Line 488  roff_alloc(struct mparse *parse, int options)
 static enum rofferr  static enum rofferr
 roff_res(struct roff *r, char **bufp, size_t *szp, int ln, int pos)  roff_res(struct roff *r, char **bufp, size_t *szp, int ln, int pos)
 {  {
         char             ubuf[12]; /* buffer to print the number */          char             ubuf[24]; /* buffer to print the number */
         const char      *start; /* start of the string to process */          const char      *start; /* start of the string to process */
         const char      *stesc; /* start of an escape sequence ('\\') */          const char      *stesc; /* start of an escape sequence ('\\') */
         const char      *stnam; /* start of the name, after "[(*" */          const char      *stnam; /* start of the name, after "[(*" */
Line 614  roff_res(struct roff *r, char **bufp, size_t *szp, int
Line 614  roff_res(struct roff *r, char **bufp, size_t *szp, int
                         ubuf[1] = '\0';                          ubuf[1] = '\0';
                         break;                          break;
                 case 'n':                  case 'n':
                         snprintf(ubuf, sizeof(ubuf), "%d",                          (void)snprintf(ubuf, sizeof(ubuf), "%d",
                             roff_getregn(r, stnam, naml));                              roff_getregn(r, stnam, naml));
                         break;                          break;
                 case 'w':                  case 'w':
                         snprintf(ubuf, sizeof(ubuf), "%d",                          (void)snprintf(ubuf, sizeof(ubuf), "%d",
                             24 * (int)naml);                              24 * (int)naml);
                         break;                          break;
                 }                  }

Legend:
Removed from v.1.207  
changed lines
  Added in v.1.208

CVSweb