X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=main.c;h=95c3ddf6a09085232c224fde0ccdbfc661fd82f8;hb=60cabac2814fc9d2755972ce838ea8feaf4a1a1c;hp=56bbeb4f4a6da67877cfc519517e2219cd30a14d;hpb=c3e57678c8be193fc137854020f3a90887be97c9;p=apps%2Fmadmutt.git diff --git a/main.c b/main.c index 56bbeb4..95c3ddf 100644 --- a/main.c +++ b/main.c @@ -4,6 +4,10 @@ * Copyright (C) 1999-2002 Thomas Roessler * Copyright (C) 2004 g10 Code GmbH * + * Parts written/modified by: + * Nico Golde + * Andreas Krennmair + * * 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. @@ -23,6 +27,10 @@ #include "mutt_crypt.h" #include "mutt_idna.h" +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #include #include #include @@ -61,8 +69,11 @@ Copyright (C) 1997-2002 Thomas Roessler \n\ Copyright (C) 1998-2002 Werner Koch \n\ Copyright (C) 1999-2002 Brendan Cully \n\ Copyright (C) 1999-2002 Tommi Komulainen \n\ -Copyright (C) 2000-2002 Edmund Grimley Evans \n\ -Copyright (C) 2004-2005 Andreas Krennmair \n\ +Copyright (C) 2000-2002 Edmund Grimley Evans \n\n\ +Parts were written/modified by:\n\ +Andreas Krennmair \n\ +Nico Golde \n\ +Rocco Rutte \n\ \n\ Lots of others not mentioned here contributed lots of code,\n\ fixes, and suggestions.\n\ @@ -548,7 +559,12 @@ int main (int argc, char **argv) alias_queries = mutt_add_list (alias_queries, optarg); break; case 'a': - attach = mutt_add_list (attach, optarg); + if (strlen(optarg)<=512) + attach = mutt_add_list (attach, optarg); + else{ + printf("too long arguments. exiting ...\n"); + exit(1); + } break; case 'F':