From 7fb87784de13726242f69e18dc0d561a4717e6ae Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 17 Nov 2007 13:48:15 +0000 Subject: [PATCH] Avoid a warning about signedness mismatch in umkpasswd. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1842 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/umkpasswd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fe5b3cb..9e01df9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-04 Michael Poole + + * ircd/umkpasswd.c (sum): Typecast buffer to avoid a warning about + the parameter type being passed to strlen(). + 2007-11-04 Michael Poole * doc/example.conf: Document /LIST M as controlled by list_chan. diff --git a/ircd/umkpasswd.c b/ircd/umkpasswd.c index 29014a1..30d4130 100644 --- a/ircd/umkpasswd.c +++ b/ircd/umkpasswd.c @@ -201,7 +201,7 @@ vstr[0] = '\0'; MD5Init(&context); while ((fgets((char*)buffer, sizeof(buffer), file)) != NULL) { - MD5Update(&context, buffer, strlen(buffer)); + MD5Update(&context, buffer, strlen((char*)buffer)); str = strstr((char*)buffer, "$Id: "); if (str != NULL) { -- 2.20.1