Fix off by one error.

This commit is contained in:
Poul-Henning Kamp 2004-05-03 11:41:25 +00:00
parent b38dafc010
commit 675d58e870

View File

@ -61,6 +61,7 @@ led_timeout(void *p)
sc->func(sc->private, 1);
}
sc->count = *sc->ptr & 0xf;
sc->count--;
sc->ptr++;
if (*sc->ptr == '\0')
sc->ptr = sc->str;