[644] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r743 - trunk/owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:08:15 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Wed, 11 Jul 2007 22:37:17 -0400 (EDT)

Author: nelhage
Date: 2007-07-11 22:37:16 -0400 (Wed, 11 Jul 2007)
New Revision: 743

Modified:
   trunk/owl/functions.c
Log:
Don't allow you to go off the end of an empty message list. [fixes:
#9]


Modified: trunk/owl/functions.c
===================================================================
--- trunk/owl/functions.c	2007-07-08 19:39:57 UTC (rev 742)
+++ trunk/owl/functions.c	2007-07-12 02:37:16 UTC (rev 743)
@@ -579,6 +579,7 @@
   }
 
   if (i>owl_view_get_size(v)-1) i=owl_view_get_size(v)-1;
+  if (i<0) i=0;
 
   if (!found) {
     owl_function_makemsg("already at last%s message%s%s",


home help back first fref pref prev next nref lref last post