changed strcpy to memmove

The areas pointed to by strcpy() cannot overlap, so we need to use
memmove() in case that happens.
Thanks to Chris Brannon for pointing this out.
This commit is contained in:
William Hubbs 2008-10-08 21:59:36 -05:00
commit 14858818d3

View file

@ -168,7 +168,7 @@ void main_loop(struct synth_t *s)
if (cp) {
queue_clear();
stop_speech();
strcpy(buf, cp+1);
memmove(buf, cp+1, strlen(cp + 1));
length = strlen(buf);
}
process_buffer(s, buf, length);