summaryrefslogtreecommitdiff
path: root/usr.bin/oldrdist/server.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-18 19:13:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-18 19:13:40 +0000
commitd51d6214fa2abd8ab575dfad3ef0690ab2a096d6 (patch)
treed11a883bf092b8f77001a674d42769deeb1a3367 /usr.bin/oldrdist/server.c
parentef77d4ef152a7f3529fa71b2c2eaedb17241d696 (diff)
readlink len-1
Diffstat (limited to 'usr.bin/oldrdist/server.c')
-rw-r--r--usr.bin/oldrdist/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/oldrdist/server.c b/usr.bin/oldrdist/server.c
index 1f917caba0c..c2bb3a91a02 100644
--- a/usr.bin/oldrdist/server.c
+++ b/usr.bin/oldrdist/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.10 1998/04/27 03:13:53 deraadt Exp $ */
+/* $OpenBSD: server.c,v 1.11 1998/05/18 19:13:20 deraadt Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -35,7 +35,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */
-static char *rcsid = "$OpenBSD: server.c,v 1.10 1998/04/27 03:13:53 deraadt Exp $";
+static char *rcsid = "$OpenBSD: server.c,v 1.11 1998/05/18 19:13:20 deraadt Exp $";
#endif /* not lint */
#include <sys/wait.h>
@@ -475,7 +475,7 @@ sendf(rname, opts)
(void) write(rem, buf, strlen(buf));
if (response() < 0)
return;
- sizerr = (readlink(target, buf, BUFSIZ) != stb.st_size);
+ sizerr = (readlink(target, buf, BUFSIZ-1) != stb.st_size);
(void) write(rem, buf, stb.st_size);
if (debug)
printf("readlink = %.*s\n", (int)stb.st_size, buf);