summaryrefslogtreecommitdiffstats
path: root/sbin/restore/main.c
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-01-01 14:08:47 +0000
committerguido <guido@FreeBSD.org>1997-01-01 14:08:47 +0000
commit07e783bc3eb2bb61a692e734cf205be502266408 (patch)
tree9d2e2a69b3a8d19bb2eb7f63181668f968c36e59 /sbin/restore/main.c
parent01876569b2445fed76ab3d84c1704e73ad519d13 (diff)
downloadFreeBSD-src-07e783bc3eb2bb61a692e734cf205be502266408.zip
FreeBSD-src-07e783bc3eb2bb61a692e734cf205be502266408.tar.gz
Yet another buffer overflow.
2.2 candidate (and -stable too actually, who does that?) Reviewed by: Warner Losh
Diffstat (limited to 'sbin/restore/main.c')
-rw-r--r--sbin/restore/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/restore/main.c b/sbin/restore/main.c
index a459945..c2c804f 100644
--- a/sbin/restore/main.c
+++ b/sbin/restore/main.c
@@ -239,7 +239,7 @@ main(argc, argv)
extractdirs(0);
initsymtable((char *)0);
while (argc--) {
- canon(*argv++, name);
+ canon(*argv++, name, sizeof(name));
ino = dirlookup(name);
if (ino == 0)
continue;
@@ -254,7 +254,7 @@ main(argc, argv)
extractdirs(1);
initsymtable((char *)0);
while (argc--) {
- canon(*argv++, name);
+ canon(*argv++, name, sizeof(name));
ino = dirlookup(name);
if (ino == 0)
continue;
OpenPOWER on IntegriCloud