diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-08 06:54:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-08 06:54:17 +0000 |
commit | 93ffd28c1e8b97780c028b3ef1bd8cf2f20c9391 (patch) | |
tree | e33e80fcf4459ca2622157ba3980c90ec7a75ab7 /bin/csh/extern.h | |
parent | 36efa34ab7ac15f8cad3040dc6dd9e79aa2f717c (diff) |
bring in strlcpy and strlcat-like things for dealing with Char types,
this fixes at least 15 buffer overflows; some help from dhartmei.
Anyone want to go do the same in ksh, and help with some of the while
(*s++ = *p++) loops in here?
Diffstat (limited to 'bin/csh/extern.h')
-rw-r--r-- | bin/csh/extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/extern.h b/bin/csh/extern.h index 6b161488209..f5b7f7d4a48 100644 --- a/bin/csh/extern.h +++ b/bin/csh/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.5 2002/02/17 19:42:18 millert Exp $ */ +/* $OpenBSD: extern.h,v 1.6 2003/01/08 06:54:16 deraadt Exp $ */ /* $NetBSD: extern.h,v 1.8 1996/10/31 23:50:54 christos Exp $ */ /*- @@ -41,7 +41,7 @@ /* * csh.c */ -int gethdir(Char *); +int gethdir(Char *, int); void dosource(Char **, struct command *); void exitstat(void); void goodbye(void); |