Fix off by one error.

This commit is contained in:
phk 2004-05-03 11:41:25 +00:00
parent fb124fc06a
commit 9785771768

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;