diff options
author | guido <guido@FreeBSD.org> | 1997-01-01 14:08:47 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1997-01-01 14:08:47 +0000 |
commit | 07e783bc3eb2bb61a692e734cf205be502266408 (patch) | |
tree | 9d2e2a69b3a8d19bb2eb7f63181668f968c36e59 /sbin/restore/main.c | |
parent | 01876569b2445fed76ab3d84c1704e73ad519d13 (diff) | |
download | FreeBSD-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.c | 4 |
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; |