From ad556e8a31763ef0185ba2de5ca9624233518fa0 Mon Sep 17 00:00:00 2001 From: pdmef Date: Mon, 21 Mar 2005 03:37:41 +0000 Subject: [PATCH] Rocco Rutte: netu! abgr gb frys: jevgr fbzr gbby gb cvpx gur evtug ybpny cngpurf git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@217 e385b8ad-14ed-0310-8656-cc95a2468c6d --- lib/list.c | 2 +- sidebar.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/list.c b/lib/list.c index 0719d9f..bc8133f 100644 --- a/lib/list.c +++ b/lib/list.c @@ -15,7 +15,7 @@ #include "mem.h" list2_t* list_new (void) { - return (safe_calloc (sizeof (list2_t), 1)); + return (safe_calloc (1, sizeof (list2_t))); } void list_del (list2_t** l, void (*edel) (void**)) { diff --git a/sidebar.c b/sidebar.c index 77c5510..eb0436a 100644 --- a/sidebar.c +++ b/sidebar.c @@ -348,7 +348,7 @@ static int exist_next_new () { int i = 0; if (list_empty(Incoming)) return (-1); - i = CurBuffy; + i = CurBuffy + 1; while (i < Incoming->length) if (((BUFFY*) Incoming->data[i++])->msg_unread) return (i-1); @@ -360,7 +360,7 @@ static int exist_prev_new () { int i = 0; if (list_empty(Incoming)) return (-1); - i = CurBuffy; + i = CurBuffy - 1; while (i >= 0) if (((BUFFY*) Incoming->data[i--])->msg_unread) return (i+1); -- 2.20.1