mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
common/buf.c: do not use memcpy for overlapping regions
This commit is contained in:
parent
881d788bee
commit
ccc3d14658
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ strip_curly_braces(char *s)
|
|||
return;
|
||||
}
|
||||
len -= 2;
|
||||
memcpy(s, s + 1, len);
|
||||
memmove(s, s + 1, len);
|
||||
s[len] = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue