From 2f220d57bd1632989709d1ad0a326f37bbdfa3b6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 19 Nov 1999 00:26:12 +0000 Subject: [PATCH] fixed string overwrite bug --- src/util/iocLogServer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/iocLogServer.c b/src/util/iocLogServer.c index f955101dd..b781e3e00 100644 --- a/src/util/iocLogServer.c +++ b/src/util/iocLogServer.c @@ -47,6 +47,9 @@ * .09 050494 pg HPUX port changes. * .10 021694 joh ANSI C * $Log$ + * Revision 1.34 1999/11/08 21:37:00 jhill + * dont print too many messages if the host runs out of fd slots + * * Revision 1.33 1999/09/02 21:41:09 jhill * improved the way that socket error numbers are converted to strings * @@ -342,7 +345,7 @@ static int seekLatestLine (struct ioc_log_server *pserver) * DayName MonthName dayNum 24hourHourNum:minNum:secNum yearNum */ convertStatus = fscanf ( - pserver->poutfile, "%*s %*s %s %d %d:%d:%d %d %*[^\n] \n", + pserver->poutfile, " %*s %*s %15s %d %d:%d:%d %d %*[^\n] ", month, &theDate.tm_mday, &theDate.tm_hour, &theDate.tm_min, &theDate.tm_sec, &theDate.tm_year); if (convertStatus==6) {