summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/compress.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-04-07 21:13:52 +0000
committerderaadt <deraadt@openbsd.org>2003-04-07 21:13:52 +0000
commit7ddc952f60bd069a82c4a082a01c1791b34f3974 (patch)
tree096906291bb89dd5690cca8e27987aa0a734b1e8 /usr.bin/file/compress.c
parenta couple more codec ids from people (diff)
downloadwireguard-openbsd-7ddc952f60bd069a82c4a082a01c1791b34f3974.tar.xz
wireguard-openbsd-7ddc952f60bd069a82c4a082a01c1791b34f3974.zip
replace strcpy calls that got inlined by gcc; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'usr.bin/file/compress.c')
-rw-r--r--usr.bin/file/compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/file/compress.c b/usr.bin/file/compress.c
index 71a64c15521..39e93934a12 100644
--- a/usr.bin/file/compress.c
+++ b/usr.bin/file/compress.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress.c,v 1.7 2003/03/11 21:26:26 ian Exp $ */
+/* $OpenBSD: compress.c,v 1.8 2003/04/07 21:13:54 deraadt Exp $ */
/*
* compress routines:
@@ -161,7 +161,7 @@ pipe2file(int fd, void *startbuf, size_t nbytes)
char buf[4096];
int r, tfd;
- (void)strcpy(buf, "/tmp/file.XXXXXX");
+ (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf);
#ifndef HAVE_MKSTEMP
{
char *ptr = mktemp(buf);