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 /parser.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 'parser.c')
-rw-r--r-- | parser.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: parser.c,v 1.13 2001/03/08 15:25:38 ltoetsch Exp $ +/* $Id: parser.c,v 1.14 2001/03/13 08:34:15 reinelt Exp $ * * row definition parser * @@ -20,6 +20,10 @@ * * * $Log: parser.c,v $ + * Revision 1.14 2001/03/13 08:34:15 reinelt + * + * corrected a off-by-one bug with sensors + * * Revision 1.13 2001/03/08 15:25:38 ltoetsch * improved exec * @@ -192,7 +196,7 @@ static int get_token (char *s, char **p, int bar, int usage[]) return -1; } c=*(s+l-1); - if (strncmp(Symtab[i].symbol, s, l-1)==0 && c>='1' && c<='9') { + if (strncmp(Symtab[i].symbol, s, l-1)==0 && c>='0' && c<='9') { *p=s+l; usage[Symtab[i].token]|=(1<<(c-'0')); usage[Symtab[i].class]=1; |