X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compress.c;h=d7c2279f46f99914442c3bf5e949aa8c03382477;hp=1ac83553d5ee9821df57b8a5ed6dc302c6f676c3;hb=1106413431b72d14d6f1208d611c489931ea4499;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/compress.c b/compress.c index 1ac8355..d7c2279 100644 --- a/compress.c +++ b/compress.c @@ -1,19 +1,10 @@ /* + * Copyright notice from original mutt: * Copyright (C) 1997 Alain Penders * - * 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., 675 Mass Ave, Cambridge, MA 02139, 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. */ #include "mutt.h" @@ -24,6 +15,10 @@ #include "mailbox.h" #include "mutt_curses.h" +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #include #include #include @@ -134,7 +129,7 @@ static void set_path (CONTEXT * ctx) /* Uncompress to /tmp */ mutt_mktemp (tmppath); - ctx->path = safe_malloc (strlen (tmppath) + 1); + ctx->path = safe_malloc (mutt_strlen (tmppath) + 1); strcpy (ctx->path, tmppath); }