Nico Golde:
authornion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Wed, 16 Feb 2005 21:26:29 +0000 (21:26 +0000)
committernion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Wed, 16 Feb 2005 21:26:29 +0000 (21:26 +0000)
  fixed segfault in curs_lib.c because of sprintf

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@65 e385b8ad-14ed-0310-8656-cc95a2468c6d

ChangeLog.mutt-ng
curs_lib.c

index 17df22c..3c0f5de 100644 (file)
@@ -1,5 +1,8 @@
 Changes specific to mutt-ng:
 
+2004-02-16:
+  * fixed segfault in curs_lib.c
+
 2005-02-13:
   * Merged in mutt changes from 1.5.7 to 1.5.8
 
index 6beeee3..6e55a2b 100644 (file)
@@ -306,7 +306,7 @@ void mutt_curses_error (const char *fmt, ...)
   dprint (1, (debugfile, "%s\n", Errorbuf));
   mutt_format_string (TmpErrorbuf, sizeof (TmpErrorbuf),
                       0, COLS-2, 0, 0, Errorbuf, sizeof (Errorbuf), 0);
-  sprintf(Errorbuf,sizeof(Errorbuf),"%s",TmpErrorbuf); /* overkill */
+  snprintf(Errorbuf,sizeof(Errorbuf),"%s",TmpErrorbuf); /* overkill */
 
   if (!option (OPTKEEPQUIET))
   {