From 6bec55ca5789e26ee315e890f4937c1451b8cd07 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 8 Oct 2008 18:14:17 -0500 Subject: [PATCH] changed process_buffer to use the isprint() call. --- softsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;