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 /exec.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 'exec.c')
-rw-r--r-- | exec.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: exec.c,v 1.4 2001/03/09 14:24:49 ltoetsch Exp $ +/* $Id: exec.c,v 1.5 2001/03/13 08:34:15 reinelt Exp $ * * exec ('x*') functions * @@ -20,6 +20,10 @@ * * * $Log: exec.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/09 14:24:49 ltoetsch * exec: Scale_x ->Min/Max_x * @@ -67,7 +71,7 @@ int Exec(int index, char buff[EXEC_TXT_LEN], double *val) size_t len; int i; - if (index < 1 || index > EXECS) + if (index < 0 || index > EXECS) return -1; if (errs[index]) return -1; |