summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcscat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/wcscat.c')
-rw-r--r--lib/libc/string/wcscat.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/string/wcscat.c b/lib/libc/string/wcscat.c
index 69c8c0c2516..80de3f0d5ec 100644
--- a/lib/libc/string/wcscat.c
+++ b/lib/libc/string/wcscat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wcscat.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */
+/* $OpenBSD: wcscat.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */
/* $NetBSD: wcscat.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */
/*-
@@ -30,15 +30,18 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: wcscat.c,v 1.1 2005/04/13 16:35:58 espie Exp $";
+static char *rcsid = "$OpenBSD: wcscat.c,v 1.2 2005/06/19 22:12:07 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <wchar.h>
+#if defined(APIWARN)
+__warn_references(wcscat,
+ "warning: wcscat() is almost always misused, please use wcslcat()");
+#endif
+
wchar_t *
-wcscat(s1, s2)
- wchar_t *s1;
- const wchar_t *s2;
+wcscat(wchar_t *s1, const wchar_t *s2)
{
wchar_t *p;
wchar_t *q;