From: Jim Meyering Date: Sun, 15 Jun 1997 11:40:47 +0000 (+0000) Subject: (init_header) [T_BUF_FMT]: Output the 4-digit year (not the X-Git-Tag: SH-UTILS-1_16a~28 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=50e65a424c0a1ffbd75936ac30aecc33c693a24a;p=thirdparty%2Fcoreutils.git (init_header) [T_BUF_FMT]: Output the 4-digit year (not the 2-digit abbreviation) in each page header. Reported by Noah Friedman. --- diff --git a/src/pr.c b/src/pr.c index 68c12a64c6..161d205f50 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. */