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

Diff for /mandoc/html.c between version 1.156 and 1.158

version 1.156, 2014/04/20 16:46:04 version 1.158, 2014/07/22 22:41:35
Line 330  print_encode(struct html *h, const char *p, int norecu
Line 330  print_encode(struct html *h, const char *p, int norecu
         int              c, len, nospace;          int              c, len, nospace;
         const char      *seq;          const char      *seq;
         enum mandoc_esc  esc;          enum mandoc_esc  esc;
         static const char rejs[8] = { '\\', '<', '>', '&',          static const char rejs[9] = { '\\', '<', '>', '&', '"',
                 ASCII_NBRSP, ASCII_HYPH, ASCII_BREAK, '\0' };                  ASCII_NBRSP, ASCII_HYPH, ASCII_BREAK, '\0' };
   
         nospace = 0;          nospace = 0;
Line 360  print_encode(struct html *h, const char *p, int norecu
Line 360  print_encode(struct html *h, const char *p, int norecu
                 case '&':                  case '&':
                         printf("&amp;");                          printf("&amp;");
                         continue;                          continue;
                   case '"':
                           printf("&quot;");
                           continue;
                 case ASCII_NBRSP:                  case ASCII_NBRSP:
                         putchar('-');                          putchar('-');
                         continue;                          continue;
Line 656  bufcat_style(struct html *h, const char *key, const ch
Line 659  bufcat_style(struct html *h, const char *key, const ch
 void  void
 bufcat(struct html *h, const char *p)  bufcat(struct html *h, const char *p)
 {  {
   
           /*
            * XXX This is broken and not easy to fix.
            * When using the -Oincludes option, buffmt_includes()
            * may pass in strings overrunning BUFSIZ, causing a crash.
            */
   
         h->buflen = strlcat(h->buf, p, BUFSIZ);          h->buflen = strlcat(h->buf, p, BUFSIZ);
         assert(h->buflen < BUFSIZ);          assert(h->buflen < BUFSIZ);

Legend:
Removed from v.1.156  
changed lines
  Added in v.1.158

CVSweb