summaryrefslogtreecommitdiffstats
path: root/lib/libmd/mddriver.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-07-12 09:13:49 +0000
committerphk <phk@FreeBSD.org>1995-07-12 09:13:49 +0000
commitd7d558428400f0ecc5856f6fcf4f56543aa841f8 (patch)
tree8b1350a696f17c97664a31181c2510c3e018115d /lib/libmd/mddriver.c
parent0a7cf84cf326542a379591308b02b89e7a365ad6 (diff)
downloadFreeBSD-src-d7d558428400f0ecc5856f6fcf4f56543aa841f8.zip
FreeBSD-src-d7d558428400f0ecc5856f6fcf4f56543aa841f8.tar.gz
Change this to do what it should have done from the start.
Add argument for buffer for output. Fix manuals.
Diffstat (limited to 'lib/libmd/mddriver.c')
-rw-r--r--lib/libmd/mddriver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libmd/mddriver.c b/lib/libmd/mddriver.c
index b99e558..fc65156 100644
--- a/lib/libmd/mddriver.c
+++ b/lib/libmd/mddriver.c
@@ -42,8 +42,10 @@
static void MDString (string)
char *string;
{
+ char buf[33];
- printf ("MD%d (\"%s\") = %s\n", MD, string, MDData(string,strlen(string)));
+ printf ("MD%d (\"%s\") = %s\n",
+ MD, string, MDData(string,strlen(string),buf));
}
/* Digests a reference suite of strings and prints the results.
OpenPOWER on IntegriCloud