diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-07 21:13:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-07 21:13:55 +0000 |
commit | 05325cbf2cd782c5388d92a0023e6ec0b1292641 (patch) | |
tree | 6f33c59185acb04605fe514c61eb613674481da1 /usr.bin/vi/common | |
parent | b236858cae71da07b39c9bf332ce1b65fde49767 (diff) |
replace strcpy calls that got inlined by gcc; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'usr.bin/vi/common')
-rw-r--r-- | usr.bin/vi/common/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/options.c b/usr.bin/vi/common/options.c index f80a6f81df7..71bd0c41a44 100644 --- a/usr.bin/vi/common/options.c +++ b/usr.bin/vi/common/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.10 2002/02/16 21:27:57 millert Exp $ */ +/* $OpenBSD: options.c,v 1.11 2003/04/07 21:13:54 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -303,7 +303,7 @@ opts_init(sp, oargs) /* Set numeric and string default values. */ #define OI(indx, str) { \ if (str != b1) /* GCC puts strings in text-space. */ \ - (void)strcpy(b1, str); \ + (void)strlcpy(b1, str, sizeof b1); \ a.len = strlen(b1); \ if (opts_set(sp, argv, NULL)) { \ optindx = indx; \ |