diff options
author | 1998-05-18 19:10:06 +0000 | |
---|---|---|
committer | 1998-05-18 19:10:06 +0000 | |
commit | 77344ee58191df5fa594611d2fcbcdae5e49d401 (patch) | |
tree | 0993a30b23d3d88b43c885773ad40c2b2be3f237 /usr.bin/rdist/client.c | |
parent | MAXPATHLEN not MAXPATHLEN+1 (diff) | |
download | wireguard-openbsd-77344ee58191df5fa594611d2fcbcdae5e49d401.tar.xz wireguard-openbsd-77344ee58191df5fa594611d2fcbcdae5e49d401.zip |
readlink len-1
Diffstat (limited to 'usr.bin/rdist/client.c')
-rw-r--r-- | usr.bin/rdist/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c index 9392d7ede1b..0ab5c37787c 100644 --- a/usr.bin/rdist/client.c +++ b/usr.bin/rdist/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.5 1997/07/21 01:53:37 angelos Exp $ */ +/* $OpenBSD: client.c,v 1.6 1998/05/18 19:12:29 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint static char RCSid[] = -"$OpenBSD: client.c,v 1.5 1997/07/21 01:53:37 angelos Exp $"; +"$OpenBSD: client.c,v 1.6 1998/05/18 19:12:29 deraadt Exp $"; static char sccsid[] = "@(#)client.c"; @@ -667,7 +667,7 @@ static int sendlink(rname, opts, stb, user, group, destdir) /* * Gather and send additional link info */ - sizerr = (readlink(target, lbuf, sizeof(lbuf)) != stb->st_size); + sizerr = (readlink(target, lbuf, sizeof(lbuf)-1) != stb->st_size); (void) sprintf(tbuf, "%.*s", (int) stb->st_size, lbuf); (void) sendcmd(C_NONE, "%s\n", tbuf); |