hi,

what do you think about the attached patch for
fixing one of the issues mentioned in ticket
http://dev.mutt.org/trac/ticket/3638

this one is about main.c:75

thanks for the consideration,
acefael

changeset:   6446:e189a50e14b9
tag:         tip
user:        acefael <e...@acefael.es>
date:        Fri May 01 21:41:23 2015 +0200
summary:     main.c:75: warning: string length '558' is greater than the length 
'509' ISO C90 compilers are required to support (see #3638)

diff -r 755a18da99bc -r e189a50e14b9 main.c
--- a/main.c    Sat Apr 25 19:00:13 2015 -0700
+++ b/main.c    Fri May 01 21:41:23 2015 +0200
@@ -72,18 +72,18 @@
 Mutt is free software, and you are welcome to redistribute it\n\
 under certain conditions; type `mutt -vv' for details.\n");
 
-static const char *Copyright = N_("\
-Copyright (C) 1996-2007 Michael R. Elkins <m...@mutt.org>\n\
-Copyright (C) 1996-2002 Brandon Long <bl...@fiction.net>\n\
-Copyright (C) 1997-2008 Thomas Roessler <roess...@does-not-exist.org>\n\
-Copyright (C) 1998-2005 Werner Koch <w...@isil.d.shuttle.de>\n\
-Copyright (C) 1999-2009 Brendan Cully <bren...@kublai.com>\n\
-Copyright (C) 1999-2002 Tommi Komulainen <tommi.komulai...@iki.fi>\n\
-Copyright (C) 2000-2002 Edmund Grimley Evans <edmu...@rano.org>\n\
-Copyright (C) 2006-2009 Rocco Rutte <pd...@gmx.net>\n\
-\n\
-Many others not mentioned here contributed code, fixes,\n\
-and suggestions.\n");
+static const char *Copyright[11] = {
+"Copyright (C) 1996-2007 Michael R. Elkins <m...@mutt.org>" ,
+"Copyright (C) 1996-2002 Brandon Long <bl...@fiction.net>" ,
+"Copyright (C) 1997-2008 Thomas Roessler <roess...@does-not-exist.org>" ,
+"Copyright (C) 1998-2005 Werner Koch <w...@isil.d.shuttle.de>" ,
+"Copyright (C) 1999-2009 Brendan Cully <bren...@kublai.com>" ,
+"Copyright (C) 1999-2002 Tommi Komulainen <tommi.komulai...@iki.fi>" ,
+"Copyright (C) 2000-2002 Edmund Grimley Evans <edmu...@rano.org>" ,
+"Copyright (C) 2006-2009 Rocco Rutte <pd...@gmx.net>" ,
+"" ,
+"Many others not mentioned here contributed code, fixes," ,
+"and suggestions." };
 
 static const char *Licence = N_("\
     This program is free software; you can redistribute it and/or modify\n\
@@ -749,7 +749,13 @@
       break;
     default:
       puts (mutt_make_version ());
-      puts (_(Copyright));
+      {
+        int csize = sizeof(Copyright)/sizeof(Copyright[0]);
+        int i;
+        for( i = 0 ; i < csize ; ++i ) {
+          puts (_(Copyright[i]));
+        }
+      }
       puts (_(Licence));
       puts (_(Obtaining));
       puts (_(ReachingUs));

Reply via email to