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)
#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