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

Diff for /mandoc/term.c between version 1.222 and 1.224

version 1.222, 2014/04/20 16:46:05 version 1.224, 2014/07/06 18:51:13
Line 444  term_word(struct termp *p, const char *word)
Line 444  term_word(struct termp *p, const char *word)
                 word++;                  word++;
                 esc = mandoc_escape(&word, &seq, &sz);                  esc = mandoc_escape(&word, &seq, &sz);
                 if (ESCAPE_ERROR == esc)                  if (ESCAPE_ERROR == esc)
                         break;                          continue;
   
                 if (TERMENC_ASCII != p->enc)                  if (TERMENC_ASCII != p->enc)
                         switch (esc) {                          switch (esc) {
Line 522  adjbuf(struct termp *p, size_t sz)
Line 522  adjbuf(struct termp *p, size_t sz)
         while (sz >= p->maxcols)          while (sz >= p->maxcols)
                 p->maxcols <<= 2;                  p->maxcols <<= 2;
   
         p->buf = mandoc_realloc(p->buf, sizeof(int) * p->maxcols);          p->buf = mandoc_reallocarray(p->buf, p->maxcols, sizeof(int));
 }  }
   
 static void  static void
Line 683  term_strlen(const struct termp *p, const char *cp)
Line 683  term_strlen(const struct termp *p, const char *cp)
                         cp++;                          cp++;
                         esc = mandoc_escape(&cp, &seq, &ssz);                          esc = mandoc_escape(&cp, &seq, &ssz);
                         if (ESCAPE_ERROR == esc)                          if (ESCAPE_ERROR == esc)
                                 return(sz);                                  continue;
   
                         if (TERMENC_ASCII != p->enc)                          if (TERMENC_ASCII != p->enc)
                                 switch (esc) {                                  switch (esc) {

Legend:
Removed from v.1.222  
changed lines
  Added in v.1.224

CVSweb