diff --git a/softsynth.c b/softsynth.c index 67998e3..bb2e2f0 100644 --- a/softsynth.c +++ b/softsynth.c @@ -102,7 +102,7 @@ static void process_buffer(struct synth_t *s, char *buf, ssize_t length) start = 0; end = 0; while (start < length) { - while (buf[end] >= 32 && end < length) + while (isprint(buf[end]) && end < length) end++; if (end != start) { txtLen = end - start;