summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-12 17:09:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-12 17:09:19 +0000
commit6991b982c65a831c45bd99053e3ffd58c81de4d3 (patch)
tree866c8f79e093bb8ad4f9933abae21be6ec31c7ec /sys
parentc8774612dd8451fd1665088bf26bf626bbf8dd79 (diff)
warn on right symbols, oops
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libkern/strcat.c6
-rw-r--r--sys/lib/libkern/strcpy.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/lib/libkern/strcat.c b/sys/lib/libkern/strcat.c
index 477bb2d1d3a..9345ee82525 100644
--- a/sys/lib/libkern/strcat.c
+++ b/sys/lib/libkern/strcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strcat.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $ */
+/* $OpenBSD: strcat.c,v 1.6 2003/05/12 17:09:18 deraadt Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -35,7 +35,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/
-static char *rcsid = "$OpenBSD: strcat.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $";
+static char *rcsid = "$OpenBSD: strcat.c,v 1.6 2003/05/12 17:09:18 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -44,7 +44,7 @@ static char *rcsid = "$OpenBSD: strcat.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $
#include <lib/libkern/libkern.h>
#endif
-__warn_references(sprintf, "warning: strcat() is often misused, please use strlcpy()");
+__warn_references(strcat, "warning: strcat() is often misused, please use strlcpy()");
char *
strcat(s, append)
diff --git a/sys/lib/libkern/strcpy.c b/sys/lib/libkern/strcpy.c
index be82b0a1218..c7a3415bb3a 100644
--- a/sys/lib/libkern/strcpy.c
+++ b/sys/lib/libkern/strcpy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strcpy.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $ */
+/* $OpenBSD: strcpy.c,v 1.6 2003/05/12 17:09:18 deraadt Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -35,7 +35,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/
-static char *rcsid = "$OpenBSD: strcpy.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $";
+static char *rcsid = "$OpenBSD: strcpy.c,v 1.6 2003/05/12 17:09:18 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -44,7 +44,7 @@ static char *rcsid = "$OpenBSD: strcpy.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $
#include <lib/libkern/libkern.h>
#endif
-__warn_references(sprintf, "warning: strcpy() is often misused, please use strlcpy()");
+__warn_references(strcpy, "warning: strcpy() is often misused, please use strlcpy()");
char *
strcpy(to, from)