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

Diff for /mandoc/html.c between version 1.55 and 1.56

version 1.55, 2009/10/03 16:36:06 version 1.56, 2009/10/03 16:37:23
Line 511  buffmt(struct html *h, const char *fmt, ...)
Line 511  buffmt(struct html *h, const char *fmt, ...)
         va_list          ap;          va_list          ap;
   
         va_start(ap, fmt);          va_start(ap, fmt);
         (void)vsnprintf(h->buf + h->buflen,          (void)vsnprintf(h->buf + (int)h->buflen,
                         BUFSIZ - h->buflen - 1, fmt, ap);                          BUFSIZ - h->buflen - 1, fmt, ap);
         va_end(ap);          va_end(ap);
         h->buflen = strlen(h->buf);          h->buflen = strlen(h->buf);
         assert('\0' == h->buf[h->buflen]);  
 }  }
   
   
Line 528  bufncat(struct html *h, const char *p, size_t sz)
Line 527  bufncat(struct html *h, const char *p, size_t sz)
   
         (void)strncat(h->buf, p, sz);          (void)strncat(h->buf, p, sz);
         h->buflen += sz;          h->buflen += sz;
         assert('\0' == h->buf[h->buflen]);  
 }  }
   
   
Line 539  buffmt_includes(struct html *h, const char *name)
Line 537  buffmt_includes(struct html *h, const char *name)
   
         pp = h->base_includes;          pp = h->base_includes;
         while ((p = strchr(pp, '%'))) {          while ((p = strchr(pp, '%'))) {
                 bufncat(h, pp, p - pp);                  bufncat(h, pp, (size_t)(p - pp));
                 switch (*(p + 1)) {                  switch (*(p + 1)) {
                 case('I'):                  case('I'):
                         bufcat(h, name);                          bufcat(h, name);
Line 563  buffmt_man(struct html *h, 
Line 561  buffmt_man(struct html *h, 
   
         pp = h->base_man;          pp = h->base_man;
         while ((p = strchr(pp, '%'))) {          while ((p = strchr(pp, '%'))) {
                 bufncat(h, pp, p - pp);                  bufncat(h, pp, (size_t)(p - pp));
                 switch (*(p + 1)) {                  switch (*(p + 1)) {
                 case('S'):                  case('S'):
                         bufcat(h, sec);                          bufcat(h, sec);

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

CVSweb