$NetBSD: patch-de,v 1.1 2008/08/31 06:52:29 dholland Exp $ --- server/time.c~ 1998-03-31 14:12:31.000000000 -0500 +++ server/time.c 2008-08-31 02:23:31.000000000 -0400 @@ -30,6 +30,8 @@ #ifdef _AIX #include #endif +#include +#include #include "xmx.h" #include "fd.h" #include "incl/time.pvt.h" @@ -232,6 +234,6 @@ time_str cp = &buf[cur++][0]; cur %= 6; - sprintf(cp, "%u/%u", tp->mo, tp->ms); /* cannot exceed 24 in length */ + snprintf(cp, 24, "%u/%u", tp->mo, tp->ms); /* cannot exceed 24 in length */ return cp; }