From 73448497af693b3387ab7de10981bb3f4bd2fb61 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 8 Oct 1994 00:41:11 +0000 Subject: [PATCH] merge with 1.10q --- lib/getdate.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index e77cc1f62d..77d63a9e9e 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -962,11 +962,13 @@ main (ac, av) int ac; char *av[]; { - char buff[128]; - time_t d; + char buff[MAX_BUFF_LEN + 1]; + time_t d; (void)printf ("Enter date, or blank line to exit.\n\t> "); (void)fflush (stdout); + + buff[MAX_BUFF_LEN] = 0; while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) { d = get_date (buff, (struct timeb *)NULL); if (d == -1) -- 2.30.2