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 <[email protected]>
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 <[email protected]>\n\
-Copyright (C) 1996-2002 Brandon Long <[email protected]>\n\
-Copyright (C) 1997-2008 Thomas Roessler <[email protected]>\n\
-Copyright (C) 1998-2005 Werner Koch <[email protected]>\n\
-Copyright (C) 1999-2009 Brendan Cully <[email protected]>\n\
-Copyright (C) 1999-2002 Tommi Komulainen <[email protected]>\n\
-Copyright (C) 2000-2002 Edmund Grimley Evans <[email protected]>\n\
-Copyright (C) 2006-2009 Rocco Rutte <[email protected]>\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 <[email protected]>" ,
+"Copyright (C) 1996-2002 Brandon Long <[email protected]>" ,
+"Copyright (C) 1997-2008 Thomas Roessler <[email protected]>" ,
+"Copyright (C) 1998-2005 Werner Koch <[email protected]>" ,
+"Copyright (C) 1999-2009 Brendan Cully <[email protected]>" ,
+"Copyright (C) 1999-2002 Tommi Komulainen <[email protected]>" ,
+"Copyright (C) 2000-2002 Edmund Grimley Evans <[email protected]>" ,
+"Copyright (C) 2006-2009 Rocco Rutte <[email protected]>" ,
+"" ,
+"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