X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fhash.c;h=cdac5e8d01831d477d2671b0d729f980f93ef967;hb=543f44bff8d56785dc13a74a14d4eaa96465bf05;hp=c75b57d596a4d9a4095a89f85153fdaeabb84749;hpb=14afdaee087dd1243800dd0697785c47ccbf931e;p=ngircd-alex.git diff --git a/src/ngircd/hash.c b/src/ngircd/hash.c index c75b57d5..cdac5e8d 100644 --- a/src/ngircd/hash.c +++ b/src/ngircd/hash.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2010 Alexander Barton (alex@barton.de) + * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,14 +16,12 @@ * Hash calculation */ -#include "imp.h" #include #include #include "defines.h" #include "tool.h" -#include "exp.h" #include "hash.h" static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval)); @@ -37,7 +35,7 @@ static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval)); GLOBAL UINT32 Hash( const char *String ) { - char buffer[LINE_LEN]; + char buffer[COMMAND_LEN]; strlcpy(buffer, String, sizeof(buffer)); return jenkins_hash((UINT8 *)ngt_LowerStr(buffer),