Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 21 Mar 2005 03:37:41 +0000 (03:37 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 21 Mar 2005 03:37:41 +0000 (03:37 +0000)
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
sidebar.c

index 0719d9f..bc8133f 100644 (file)
@@ -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**)) {
index 77c5510..eb0436a 100644 (file)
--- 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);