summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-08-21 22:44:47 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-08-21 22:44:47 +0000
commit4453db1c560855bd1ba4e7166ebd3bdd8e21c796 (patch)
treea3b8f1c95393e2902d0833192a5edca80ba429e5 /lib/libc
parent7a8b01acc125505750db313a6cd9e8d8cab7e760 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/db/test/dbtest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/db/test/dbtest.c b/lib/libc/db/test/dbtest.c
index 4341b4c4709c..ebf6be883be4 100644
--- a/lib/libc/db/test/dbtest.c
+++ b/lib/libc/db/test/dbtest.c
@@ -38,7 +38,11 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
+#if 0
static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$";
#endif /* not lint */
#include <sys/param.h>
@@ -154,7 +158,7 @@ main(argc, argv)
p = getenv("TMPDIR");
if (p == NULL)
p = "/var/tmp";
- (void)sprintf(buf, "%s/__dbtest", p);
+ (void)snprintf(buf, sizeof(buf), "%s/__dbtest", p);
fname = buf;
(void)unlink(buf);
} else if (!sflag)