Add proper deps. Add destdir support. And, finally, make it build properly. (82 (small) patches later...)
21 lines
582 B
Text
21 lines
582 B
Text
$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 <sys/select.h>
|
|
#endif
|
|
+#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#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;
|
|
}
|