diff options
Diffstat (limited to 'sys/lib/libkern/strcat.c')
-rw-r--r-- | sys/lib/libkern/strcat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/lib/libkern/strcat.c b/sys/lib/libkern/strcat.c index a493de8935a..477bb2d1d3a 100644 --- a/sys/lib/libkern/strcat.c +++ b/sys/lib/libkern/strcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcat.c,v 1.4 1998/06/27 01:21:04 mickey Exp $ */ +/* $OpenBSD: strcat.c,v 1.5 2003/05/10 21:44:53 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.4 1998/06/27 01:21:04 mickey Exp $"; +static char *rcsid = "$OpenBSD: strcat.c,v 1.5 2003/05/10 21:44:53 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #if !defined(_KERNEL) && !defined(_STANDALONE) @@ -44,6 +44,8 @@ static char *rcsid = "$OpenBSD: strcat.c,v 1.4 1998/06/27 01:21:04 mickey Exp $" #include <lib/libkern/libkern.h> #endif +__warn_references(sprintf, "warning: strcat() is often misused, please use strlcpy()"); + char * strcat(s, append) register char *s; |