From 9a9b1465c1db7efca538c5b4b2ddc43efc8f7818 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 25 Feb 2005 16:08:19 +0000 Subject: no more Strncpy or Strncat, ever --- bin/csh/csh.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bin/csh') diff --git a/bin/csh/csh.h b/bin/csh/csh.h index 4579013a152..7b95f50dc47 100644 --- a/bin/csh/csh.h +++ b/bin/csh/csh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: csh.h,v 1.15 2003/06/25 21:12:39 deraadt Exp $ */ +/* $OpenBSD: csh.h,v 1.16 2005/02/25 16:08:18 deraadt Exp $ */ /* $NetBSD: csh.h,v 1.9 1995/03/21 09:02:40 cgd Exp $ */ /*- @@ -71,7 +71,7 @@ typedef char Char; #endif /* - * Make sure a variable is not stored in a by taking its address + * Make sure a variable is not stored in register a by taking its address * This is used where variables might be clobbered by longjmp. */ #define UNREGISTER(a) (void) &a @@ -486,9 +486,7 @@ Char HISTSUB; /* auto-substitute character */ #define Strchr(a, b) strchr(a, b) #define Strrchr(a, b) strrchr(a, b) #define Strlcat(a, b, l) strlcat(a, b, l) -#define Strncat(a, b, c) strncat(a, b, c) #define Strlcpy(a, b, l) strlcpy(a, b, l) -#define Strncpy(a, b, c) strncpy(a, b, c) #define Strlen(a) strlen(a) #define Strcmp(a, b) strcmp(a, b) #define Strncmp(a, b, c) strncmp(a, b, c) @@ -506,9 +504,7 @@ Char HISTSUB; /* auto-substitute character */ #define Strchr(a, b) s_strchr(a, b) #define Strrchr(a, b) s_strrchr(a, b) #define Strlcat(a, b, l) s_strlcat(a, b, l) -#define Strncat(a, b, c) s_strncat(a, b, c) #define Strlcpy(a, b, l) s_strlcpy(a, b, l) -#define Strncpy(a, b, c) s_strncpy(a, b, c) #define Strlen(a) s_strlen(a) #define Strcmp(a, b) s_strcmp(a, b) #define Strncmp(a, b, c) s_strncmp(a, b, c) -- cgit v1.2.3