summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sup/src/supcmeat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sup/src/supcmeat.c b/usr.bin/sup/src/supcmeat.c
index 0bc6287b94c..09243dedefa 100644
--- a/usr.bin/sup/src/supcmeat.c
+++ b/usr.bin/sup/src/supcmeat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: supcmeat.c,v 1.11 2001/04/29 21:52:16 millert Exp $ */
+/* $OpenBSD: supcmeat.c,v 1.12 2001/04/29 22:45:12 millert Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -891,6 +891,7 @@ register struct stat *statp;
return (TRUE);
}
linkname = t->Tlink->Tname;
+ memset(buf, 0, sizeof(buf));
if (!new && (t->Tflags&FNEW) == 0 &&
(n = readlink (t->Tname,buf,sizeof(buf)-1)) >= 0 &&
(n == strlen (linkname)) && (strncmp (linkname,buf,n) == 0))