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/file | |
parent | b236858cae71da07b39c9bf332ce1b65fde49767 (diff) |
replace strcpy calls that got inlined by gcc; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/compress.c | 4 |
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); |