mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 06:05:44 +01:00
remove usage of mempcpy; this is apart of GNU C
This commit is contained in:
@@ -138,8 +138,8 @@ static char *conf_getpat_concat(const char *restrict s1, const char *restrict s2
|
|||||||
buf = ptr; // store the head pointer into buf
|
buf = ptr; // store the head pointer into buf
|
||||||
|
|
||||||
// copy data to the buffer
|
// copy data to the buffer
|
||||||
ptr = mempcpy(ptr, s1, s1len); // copy s1 data to the buffer
|
ptr = memcpy(ptr, s1, s1len) + s1len; // copy s1 data to the buffer
|
||||||
if (s2len) ptr = mempcpy(ptr, s2, s2len); // copy s2 data to the buffer (excluding null-terminator)
|
if (s2len) ptr = memcpy(ptr, s2, s2len) + s2len; // copy s2 data to the buffer (excluding null-terminator)
|
||||||
(void)strcpy(ptr, s3); // copy s3 as a string, thus including null-terminator
|
(void)strcpy(ptr, s3); // copy s3 as a string, thus including null-terminator
|
||||||
|
|
||||||
// return the buffer
|
// return the buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user