summaryrefslogtreecommitdiff
path: root/usr.bin/oldrdist/server.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-09 19:25:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-09 19:25:00 +0000
commit6ff0293245876ada44b013e21c7e74c0967f3770 (patch)
tree56207097c416c51032a7f48aa6f73562d936f8a2 /usr.bin/oldrdist/server.c
parent3505799656dc8cf4ebe42c9cb798e1125e1b48bf (diff)
buf oflow, eivind@freebsd
Diffstat (limited to 'usr.bin/oldrdist/server.c')
-rw-r--r--usr.bin/oldrdist/server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/oldrdist/server.c b/usr.bin/oldrdist/server.c
index b8531eb9924..8de4fc7aee0 100644
--- a/usr.bin/oldrdist/server.c
+++ b/usr.bin/oldrdist/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.7 1996/12/22 03:26:00 tholo Exp $ */
+/* $OpenBSD: server.c,v 1.8 1997/02/09 19:24:59 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.7 1996/12/22 03:26:00 tholo Exp $";
+static char *rcsid = "$OpenBSD: server.c,v 1.8 1997/02/09 19:24:59 deraadt Exp $";
#endif /* not lint */
#include <sys/wait.h>
@@ -125,7 +125,7 @@ server()
case 't': /* init target file/directory name */
catname = 0;
dotarget:
- if (exptilde(target, cp) == NULL)
+ if (exptilde(target, cp, sizeof (target)) == NULL)
continue;
tp = target;
while (*tp)
@@ -186,7 +186,7 @@ server()
continue;
}
if (*cp == '~') {
- if (exptilde(buf, cp) == NULL)
+ if (exptilde(buf, cp, sizeof (buf)) == NULL)
continue;
cp = buf;
}
@@ -258,7 +258,7 @@ install(src, dest, destdir, opts)
return;
}
- rname = exptilde(target, src);
+ rname = exptilde(target, src, sizeof(target));
if (rname == NULL)
return;
tp = target;