From 62deb008bc658d925bd86fb4172b12779b9cad18 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 9 Oct 2008 07:58:58 -0500 Subject: [PATCH] fixed the number of bytes to move in the memmove() call --- softsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softsynth.c b/softsynth.c index 0a7f81e..bfa9969 100644 --- a/softsynth.c +++ b/softsynth.c @@ -168,7 +168,7 @@ void main_loop(struct synth_t *s) if (cp) { queue_clear(); stop_speech(); - memmove(buf, cp+1, strlen(cp + 1)); + memmove(buf, cp+1, strlen(cp + 1) + 1); length = strlen(buf); } process_buffer(s, buf, length);