1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-29 22:53:03 +00:00
Be really sure we don't pass too large of a size to memcpy.
There seem to be some situations where the slotcount and the ua.count
do not match at all, so use the mimimum for copying.
This commit is contained in:
Calvin Rose
2020-05-28 10:47:22 -05:00
parent b33fdc1674
commit fff66649aa
2 changed files with 9 additions and 3 deletions

View File

@@ -26,6 +26,8 @@
#include "util.h"
#endif
#ifdef JANET_NET
#ifdef JANET_WINDOWS
#include <winsock2.h>
#include <windows.h>
@@ -675,3 +677,5 @@ void janet_net_deinit(void) {
WSACleanup();
#endif
}
#endif