diff --git a/src/lib/libc/crypt/md5crypt.c b/src/lib/libc/crypt/md5crypt.c index f17a8d37..0d661cb7 100644 --- a/src/lib/libc/crypt/md5crypt.c +++ b/src/lib/libc/crypt/md5crypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5crypt.c,v 1.2 1996/06/03 22:20:37 niklas Exp $ */ +/* $OpenBSD: md5crypt.c,v 1.3 1996/07/02 23:05:38 deraadt Exp $ */ /* * ---------------------------------------------------------------------------- @@ -11,7 +11,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.2 1996/06/03 22:20:37 niklas Exp $"; +static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.3 1996/07/02 23:05:38 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -44,12 +44,12 @@ md5crypt(pw, salt) register const char *pw; register const char *salt; { - static char *magic = "$1$"; /* - * This string is magic for - * this algorithm. Having - * it this way, we can get - * get better later on - */ + /* + * This string is magic for this algorithm. Having + * it this way, we can get get better later on + */ + static char *magic = "$1$"; + static char passwd[120], *p; static const char *sp,*ep; unsigned char final[16];