diff options
author | 1999-12-15 05:34:33 +0000 | |
---|---|---|
committer | 1999-12-15 05:34:33 +0000 | |
commit | c9c33414ecaeb85330500cbe725a575d9ffcd33a (patch) | |
tree | fabaa689665f469c0590040712c8ced0903b69f6 | |
parent | overflow safe (diff) | |
download | wireguard-openbsd-c9c33414ecaeb85330500cbe725a575d9ffcd33a.tar.xz wireguard-openbsd-c9c33414ecaeb85330500cbe725a575d9ffcd33a.zip |
safe strcpy
-rw-r--r-- | usr.bin/fmt/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index d45b6b02e7f..64531f4e9ba 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt.c,v 1.13 1998/12/14 21:50:32 millert Exp $ */ +/* $OpenBSD: fmt.c,v 1.14 1999/12/15 05:34:33 deraadt Exp $ */ /* Sensible version of fmt * @@ -168,7 +168,7 @@ #ifndef lint static const char rcsid[] = - "$OpenBSD: fmt.c,v 1.13 1998/12/14 21:50:32 millert Exp $"; + "$OpenBSD: fmt.c,v 1.14 1999/12/15 05:34:33 deraadt Exp $"; static const char copyright[] = "Copyright (c) 1997 Gareth McCaughan. All rights reserved.\n"; #endif /* not lint */ @@ -290,7 +290,7 @@ main(int argc, char *argv[]) { continue; case 'd': sentence_enders = XMALLOC(strlen(optarg)+1); - strcpy(sentence_enders, optarg); + strcpy(sentence_enders, optarg); /* ok */ continue; case 'l': output_tab_width |