diff options
author | reinelt <> | 2001-03-13 08:34:15 +0000 |
---|---|---|
committer | reinelt <> | 2001-03-13 08:34:15 +0000 |
commit | 6465b5a730a285a6e57b87de3004b5cfa1668e01 (patch) | |
tree | f0b10feb1d65abe27985aaf44090689ccfa8f41f /mail.c | |
parent | bed646f0cbe8c358af9f4c2088d1524f8bc78121 (diff) | |
download | lcd4linux-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |