diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-02-13 03:03:50 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-02-13 03:03:50 +0000 |
commit | 41a92edea7577287da7309a859cc4d3b325475b2 (patch) | |
tree | 978f0f909f2a00041d9796b7502466168bc1b2b9 /usr.bin/mg/def.h | |
parent | e9faada323e879900c5085eab213797e9172741d (diff) |
* Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat.
* Be a little bit more verbose about some errors
* Fix some memory leaks in fileio.c
ok deraadt@, art@
Diffstat (limited to 'usr.bin/mg/def.h')
-rw-r--r-- | usr.bin/mg/def.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index f33959e2ca6..bd2af3aae6b 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.24 2002/01/18 08:37:08 art Exp $ */ +/* $OpenBSD: def.h,v 1.25 2002/02/13 03:03:49 vincent Exp $ */ /* * This file is the general header file for all parts @@ -573,7 +573,7 @@ extern int defb_nmodes; extern int defb_flag; extern const char cinfo[]; extern char *keystrings[]; -extern char pat[]; +extern char pat[NPAT]; #ifndef NO_DPROMPT extern char prompt[]; #endif /* !NO_DPROMPT */ |