diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-18 19:13:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-18 19:13:40 +0000 |
commit | d51d6214fa2abd8ab575dfad3ef0690ab2a096d6 (patch) | |
tree | d11a883bf092b8f77001a674d42769deeb1a3367 /usr.bin/rdist/client.c | |
parent | ef77d4ef152a7f3529fa71b2c2eaedb17241d696 (diff) |
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); |