From: nion Date: Wed, 16 Feb 2005 21:26:29 +0000 (+0000) Subject: Nico Golde: X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=1bdbccb7f3e83735873bd0f66cd9f66d5d008342 Nico Golde: 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 --- diff --git a/ChangeLog.mutt-ng b/ChangeLog.mutt-ng index 17df22c..3c0f5de 100644 --- a/ChangeLog.mutt-ng +++ b/ChangeLog.mutt-ng @@ -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 diff --git a/curs_lib.c b/curs_lib.c index 6beeee3..6e55a2b 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -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)) {