From 66cb5a7b5cfe0e569525935d03b0843ee85a8afc Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 9 Oct 2008 08:17:07 -0500 Subject: [PATCH] fixed the length calculation when a flush is processed. --- softsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softsynth.c b/softsynth.c index bfa9969..e8fb7c5 100644 --- a/softsynth.c +++ b/softsynth.c @@ -169,7 +169,7 @@ void main_loop(struct synth_t *s) queue_clear(); stop_speech(); memmove(buf, cp+1, strlen(cp + 1) + 1); - length = strlen(buf); + length = strlen(buf) + 1; } process_buffer(s, buf, length); }