mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-21 23:34:18 +02:00
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:
parent
6bec55ca57
commit
14858818d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue