Since we are using strlen() let's assign it to the correct type and
include the proper header.
This commit is contained in:
parent
73332890ea
commit
b76bf6fc36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48953
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: md5.c,v 1.13 1998/07/06 07:04:50 charnier Exp $";
|
"$Id: md5.c,v 1.14 1999/05/01 14:54:21 kris Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -28,6 +28,7 @@ static const char rcsid[] =
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
@ -100,7 +101,7 @@ static void
|
|||||||
MDString(string)
|
MDString(string)
|
||||||
char *string;
|
char *string;
|
||||||
{
|
{
|
||||||
unsigned int len = strlen(string);
|
size_t len = strlen(string);
|
||||||
char buf[33];
|
char buf[33];
|
||||||
|
|
||||||
printf("MD5 (\"%s\") = %s\n", string, MD5Data(string, len, buf));
|
printf("MD5 (\"%s\") = %s\n", string, MD5Data(string, len, buf));
|
||||||
|
Loading…
Reference in New Issue
Block a user