aboutsummaryrefslogtreecommitdiffstats
path: root/mail.c
diff options
context:
space:
mode:
authorreinelt <>2001-03-13 08:34:15 +0000
committerreinelt <>2001-03-13 08:34:15 +0000
commit6465b5a730a285a6e57b87de3004b5cfa1668e01 (patch)
treef0b10feb1d65abe27985aaf44090689ccfa8f41f /mail.c
parentbed646f0cbe8c358af9f4c2088d1524f8bc78121 (diff)
downloadlcd4linux-6465b5a730a285a6e57b87de3004b5cfa1668e01.tar.gz
[lcd4linux @ 2001-03-13 08:34:15 by reinelt]
corrected a off-by-one bug with sensors
Diffstat (limited to 'mail.c')
-rw-r--r--mail.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail.c b/mail.c
index 8d55471..2986512 100644
--- a/mail.c
+++ b/mail.c
@@ -1,4 +1,4 @@
-/* $Id: mail.c,v 1.4 2001/03/08 09:02:04 reinelt Exp $
+/* $Id: mail.c,v 1.5 2001/03/13 08:34:15 reinelt Exp $
*
* email specific functions
*
@@ -20,6 +20,10 @@
*
*
* $Log: mail.c,v $
+ * Revision 1.5 2001/03/13 08:34:15 reinelt
+ *
+ * corrected a off-by-one bug with sensors
+ *
* Revision 1.4 2001/03/08 09:02:04 reinelt
*
* seti client cleanup
@@ -83,7 +87,7 @@ int Mail (int index, int *num)
char *txt;
char txt1[100];
- if (index<1 || index>MAILBOXES) return -1;
+ if (index<0 || index>MAILBOXES) return -1;
if (time(NULL)==now[index]) return 0; // More then 1 second after last check
time(&now[index]); // for Mailbox #index