From 003d29986d77f9e5b2564d522b583e159a0653ba Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 27 Apr 1995 16:05:51 +0000 Subject: [PATCH] No sense in copying the hex[] array in each call to MDXEnd(), it's a constant. (There probably ought to be a single libc version of it.) --- lib/libmd/mdXhl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libmd/mdXhl.c b/lib/libmd/mdXhl.c index 76152cad06e..10c521c1d38 100644 --- a/lib/libmd/mdXhl.c +++ b/lib/libmd/mdXhl.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $FreeBSD$ + * $Id$ * */ @@ -25,7 +25,7 @@ MDXEnd(MDX_CTX *ctx) int i; char *p = malloc(33); unsigned char digest[16]; - char hex[]="0123456789abcdef"; + static const char hex[]="0123456789abcdef"; if(!p) return 0; MDXFinal(digest,ctx);