From f7c264cb8b1df6686e190fe61da1eb83d0639ae0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 2 May 2004 17:35:09 +0000 Subject: Use MD5_DIGEST_STRING_LENGTH --- usr.sbin/mtree/compare.c | 6 +++--- usr.sbin/mtree/create.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index efa33a8bae8..d7f14d3a089 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -1,5 +1,5 @@ /* $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $ */ -/* $OpenBSD: compare.c,v 1.17 2003/06/02 23:36:54 millert Exp $ */ +/* $OpenBSD: compare.c,v 1.18 2004/05/02 17:35:08 millert Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -34,7 +34,7 @@ #if 0 static const char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: compare.c,v 1.17 2003/06/02 23:36:54 millert Exp $"; +static const char rcsid[] = "$OpenBSD: compare.c,v 1.18 2004/05/02 17:35:08 millert Exp $"; #endif #endif /* not lint */ @@ -251,7 +251,7 @@ typeerr: LABEL; } } if (s->flags & F_MD5) { - char *new_digest, buf[33]; + char *new_digest, buf[MD5_DIGEST_STRING_LENGTH]; new_digest = MD5File(p->fts_accpath, buf); if (!new_digest) { diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c index 3983fc2d4e0..462aafb6be2 100644 --- a/usr.sbin/mtree/create.c +++ b/usr.sbin/mtree/create.c @@ -1,5 +1,5 @@ /* $NetBSD: create.c,v 1.11 1996/09/05 09:24:19 mycroft Exp $ */ -/* $OpenBSD: create.c,v 1.20 2003/06/02 23:36:54 millert Exp $ */ +/* $OpenBSD: create.c,v 1.21 2004/05/02 17:35:08 millert Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -34,7 +34,7 @@ #if 0 static const char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: create.c,v 1.20 2003/06/02 23:36:54 millert Exp $"; +static const char rcsid[] = "$OpenBSD: create.c,v 1.21 2004/05/02 17:35:08 millert Exp $"; #endif #endif /* not lint */ @@ -206,7 +206,7 @@ statf(indent, p) output(indent, &offset, "cksum=%lu", val); } if (keys & F_MD5 && S_ISREG(p->fts_statp->st_mode)) { - char *md5digest, buf[33]; + char *md5digest, buf[MD5_DIGEST_STRING_LENGTH]; md5digest = MD5File(p->fts_accpath,buf); if (!md5digest) -- cgit v1.2.3