X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgpmicalg.c;h=0fc65c0fa468a7975f3cf17a3e980a30aad3e30f;hp=e178bfac842f755aecb4c906c2d7792fc70d3e1b;hb=41a708d3e526f10bc3aba7c5eac80aaa0b7b6fcd;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/pgpmicalg.c b/pgpmicalg.c index e178bfa..0fc65c0 100644 --- a/pgpmicalg.c +++ b/pgpmicalg.c @@ -1,20 +1,10 @@ /* + * Copyright notice from original mutt: * Copyright (C) 2001 Thomas Roessler - * - * 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. */ /* This module peeks at a PGP signature and figures out the hash @@ -114,7 +104,7 @@ static void pgp_dearmor (FILE * in, FILE * out) return; } - if ((end = ftell (in) - strlen (line)) < start) { + if ((end = ftell (in) - safe_strlen (line)) < start) { dprint (1, (debugfile, "pgp_dearmor: end < start???\n")); return; }