Mercurial > hg > octave-lojdl > gnulib-hg
changeset 257:5483ac58c1d7 SHELLUTILS
GNU shell utilities
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 08 Oct 1994 00:26:58 +0000 |
parents | 08db9279f1ba |
children | |
files | lib/getdate.y lib/pathmax.h |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getdate.y +++ b/lib/getdate.y @@ -962,11 +962,13 @@ 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)
--- a/lib/pathmax.h +++ b/lib/pathmax.h @@ -38,7 +38,7 @@ #endif /* Don't include sys/param.h if it already has been. */ -#if defined(HAVE_SYS_PATH_MAX_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) +#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) #include <sys/param.h> #endif