mirror of
https://github.com/janet-lang/janet
synced 2025-10-29 22:53:03 +00:00
Fix issue #416.
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user