summaryrefslogtreecommitdiff
path: root/thirdparty
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-28 11:04:05 +0200
committerGitHub <noreply@github.com>2021-04-28 11:04:05 +0200
commit305b2a15bf1ed950e8e2ed50fa84456b584798fb (patch)
treeabaa1e01ca34382f4ea1d6e24c403ecff1502f39 /thirdparty
parent7bca90769cbf7ae29023ca8d83ba7ab3137deda3 (diff)
parent8247667a3ee0d86f26094e722497b0cbb99cc12b (diff)
Merge pull request #48239 from akien-mga/goodbye-copymem
Core: Drop custom `copymem`/`zeromem` defines
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/enet/godot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/enet/godot.cpp b/thirdparty/enet/godot.cpp
index 1c75414be2..140f0093eb 100644
--- a/thirdparty/enet/godot.cpp
+++ b/thirdparty/enet/godot.cpp
@@ -211,7 +211,7 @@ public:
ERR_FAIL_COND_V(err != OK, err);
ERR_FAIL_COND_V(p_len < r_read, ERR_OUT_OF_MEMORY);
- copymem(p_buffer, buffer, r_read);
+ memcpy(p_buffer, buffer, r_read);
r_ip = udp->get_packet_address();
r_port = udp->get_packet_port();
return err;
@@ -315,7 +315,7 @@ public:
Vector<String> s = E->key().rsplit(":", false, 1);
ERR_CONTINUE(s.size() != 2); // BUG!
- copymem(p_buffer, buffer, r_read);
+ memcpy(p_buffer, buffer, r_read);
r_ip = s[0];
r_port = s[1].to_int();
break; // err = OK