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

Diff for /mandoc/man_term.c between version 1.33 and 1.34

version 1.33, 2009/10/04 15:24:54 version 1.34, 2009/10/07 12:19:39
Line 919  static void
Line 919  static void
 print_foot(struct termp *p, const struct man_meta *meta)  print_foot(struct termp *p, const struct man_meta *meta)
 {  {
         struct tm       *tm;          struct tm       *tm;
         char            *buf;          char             buf[BUFSIZ];
   
         if (NULL == (buf = malloc(p->rmargin)))  
                 err(EXIT_FAILURE, "malloc");  
   
         tm = localtime(&meta->date);          tm = localtime(&meta->date);
   
         if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))          if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))
                 err(EXIT_FAILURE, "strftime");                  (void)strlcpy(buf, "(invalid date)", BUFSIZ);
   
         term_vspace(p);          term_vspace(p);
   
Line 948  print_foot(struct termp *p, const struct man_meta *met
Line 945  print_foot(struct termp *p, const struct man_meta *met
   
         term_word(p, buf);          term_word(p, buf);
         term_flushln(p);          term_flushln(p);
   
         free(buf);  
 }  }
   
   

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

CVSweb