X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hcache.c;h=b99a502aaec8892c213538e1bf3cff5c57473476;hp=cef8fc16e6dc0f38e5f396f8c6637ecf73fb6991;hb=0d23a37d51884266b694d3a94300ddb5c3faf4fa;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/hcache.c b/hcache.c index cef8fc1..b99a502 100644 --- a/hcache.c +++ b/hcache.c @@ -1,21 +1,12 @@ /* + * Copyright notice from original mutt: * Copyright (C) 2004 Thomas Glanzmann * Copyright (C) 2004 Tobias Werth * Copyright (C) 2004 Brian Fundakowski Feldman * - * 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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ # if HAVE_INTTYPES_H @@ -52,6 +43,8 @@ #include "lib.h" #include "md5.h" +#include "lib/mem.h" + #if HAVE_GDBM static struct header_cache { @@ -502,7 +495,7 @@ static const char *mutt_hcache_per_folder (const char *path, } MD5Init (&md5); - MD5Update (&md5, (unsigned char *) folder, strlen (folder)); + MD5Update (&md5, (unsigned char *) folder, mutt_strlen (folder)); MD5Final (md5sum, &md5); ret = snprintf (mutt_hcache_per_folder_path, _POSIX_PATH_MAX,