summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-06-15 11:40:47 +0000
committerJim Meyering <jim@meyering.net>1997-06-15 11:40:47 +0000
commit50e65a424c0a1ffbd75936ac30aecc33c693a24a (patch)
tree4199668e86c4d3887bb54157ff561f0e29376378 /src
parentaca4091fae87c15b0b35588197b7fd971b1ecacb (diff)
downloadcoreutils-50e65a424c0a1ffbd75936ac30aecc33c693a24a.tar.xz
(init_header) [T_BUF_FMT]: Output the 4-digit year (not the
2-digit abbreviation) in each page header. Reported by Noah Friedman.
Diffstat (limited to 'src')
-rw-r--r--src/pr.c14
1 files 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 <limits.h>
+# include <limits.h>
#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. */