diff options
author | ltoetsch <> | 2001-03-16 09:28:08 +0000 |
---|---|---|
committer | ltoetsch <> | 2001-03-16 09:28:08 +0000 |
commit | b0650f9131a98a02ca65ab15a7f41e99b6822e90 (patch) | |
tree | d9f5d967aa61555c0e264ebb36e0739f64bfb171 /processor.c | |
parent | 79f5ff58b333f6890791f99318eb1297e0404df5 (diff) | |
download | lcd4linux-b0650f9131a98a02ca65ab15a7f41e99b6822e90.tar.gz |
[lcd4linux @ 2001-03-16 09:28:08 by ltoetsch]
bugfixes
Diffstat (limited to 'processor.c')
-rw-r--r-- | processor.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/processor.c b/processor.c index ad87868..76ff683 100644 --- a/processor.c +++ b/processor.c @@ -1,4 +1,4 @@ -/* $Id: processor.c,v 1.22 2001/03/15 15:49:23 ltoetsch Exp $ +/* $Id: processor.c,v 1.23 2001/03/16 09:28:08 ltoetsch Exp $ * * main data processing * @@ -20,6 +20,9 @@ * * * $Log: processor.c,v $ + * Revision 1.23 2001/03/16 09:28:08 ltoetsch + * bugfixes + * * Revision 1.22 2001/03/15 15:49:23 ltoetsch * fixed compile HD44780.c, cosmetics * @@ -561,8 +564,11 @@ static char *process_row (int r) if (*s=='%') { token = *(unsigned char*)++s; if (token>T_EXTENDED) token += (*(unsigned char*)++s)<<8; - for (q = p, len=0; *q && isspace(*q); q++) - len++; + if (!s[1]) + len = cols - (s - row[r] - 1); + else + for (q = s+1, len=0; *q && isspace(*q); q++) + len++; print_token (token, &p, buffer, len); } else if (*s=='$') { |