From 50e65a424c0a1ffbd75936ac30aecc33c693a24a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 15 Jun 1997 11:40:47 +0000 Subject: (init_header) [T_BUF_FMT]: Output the 4-digit year (not the 2-digit abbreviation) in each page header. Reported by Noah Friedman. --- src/pr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pr.c b/src/pr.c index 68c12a64c..161d205f5 100644 --- a/src/pr.c +++ b/src/pr.c @@ -179,23 +179,23 @@ #include "xstrtol.h" #if HAVE_LIMITS_H -#include +# include #endif char *xmalloc (); char *xrealloc (); #ifndef UINT_MAX -#define UINT_MAX ((unsigned int) ~(unsigned int) 0) +# define UINT_MAX ((unsigned int) ~(unsigned int) 0) #endif #ifndef INT_MAX -#define INT_MAX ((int) (UINT_MAX >> 1)) +# define INT_MAX ((int) (UINT_MAX >> 1)) #endif #ifndef TRUE -#define TRUE 1 -#define FALSE 0 +# define TRUE 1 +# define FALSE 0 #endif /* Used with start_position in the struct COLUMN described below. @@ -1386,8 +1386,8 @@ init_header (char *filename, int desc) sprintf (header, "%s", " "); /* blank line header */ else { -#define T_BUF_FMT "%y-%m-%d %H:%M" /* date/time short format */ -#define T_BUF_SIZE 15 +#define T_BUF_FMT "%Y-%m-%d %H:%M" /* date/time short format */ +#define T_BUF_SIZE 17 /* FIXME: using a literal here is fragile. */ char t_buf[T_BUF_SIZE]; /* If parallel files or standard input, use current time. */ -- cgit v1.2.3-70-g09d2