aboutsummaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-13 08:34:15 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-13 08:34:15 +0000
commitf3076919635e550ed752db4030468a3f256f60a1 (patch)
treef0b10feb1d65abe27985aaf44090689ccfa8f41f /exec.c
parentab548cb3e831ea2443d6362acc319eb01c0ceab6 (diff)
downloadlcd4linux-f3076919635e550ed752db4030468a3f256f60a1.tar.gz
[lcd4linux @ 2001-03-13 08:34:15 by reinelt]
corrected a off-by-one bug with sensors git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@116 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index 71c18a1..c37fa56 100644
--- a/exec.c
+++ b/exec.c
@@ -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;