Skip to content

Commit

Permalink
Mono: Fix Android build after #46900
Browse files Browse the repository at this point in the history
(cherry picked from commit 2274d4e)
  • Loading branch information
akien-mga committed Mar 18, 2021
1 parent 0eb0e61 commit a0f56b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mono/mono_gd/support/android_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ GD_PINVOKE_EXPORT int32_t _monodroid_get_dns_servers(void **r_dns_servers_array)
if (dns_servers_count > 0) {
size_t ret_size = sizeof(char *) * (size_t)dns_servers_count;
*r_dns_servers_array = malloc(ret_size); // freed by the BCL
ERR_FAIL_NULL_MSG(*r_dns_servers_array, "Out of memory.");
ERR_FAIL_NULL_V_MSG(*r_dns_servers_array, -1, "Out of memory.");
memcpy(*r_dns_servers_array, dns_servers, ret_size);
}

Expand Down

0 comments on commit a0f56b5

Please sign in to comment.