diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-23 18:06:48 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-23 19:03:11 +0200 |
| commit | 850010a96b6cbc3eae03edd891e50325e017b678 (patch) | |
| tree | 391100fb00f0bf3fe7aae8c9a574c72d8ce9b17b /libpcsxcore/socket.c | |
| parent | 470da05658a97a51bd2ad2db7834bcc13dd995fd (diff) | |
| download | pcsxr-850010a96b6cbc3eae03edd891e50325e017b678.tar.gz | |
Replaced in-house gdb stub by MIT-licensed implementation
Imported from a fork of https://github.com/mborgerson/gdbstub
Diffstat (limited to 'libpcsxcore/socket.c')
| -rw-r--r-- | libpcsxcore/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c index 1faffd3d..51aefdf7 100644 --- a/libpcsxcore/socket.c +++ b/libpcsxcore/socket.c @@ -252,8 +252,8 @@ int RawReadSocket(int client_socket, char *buffer, size_t len) { #endif } -void WriteSocket(int client_socket, const char *buffer, size_t len) { - if (!client_socket) +void WriteSocket(int client_socket, const void *buffer, size_t len) { + if (client_socket <= 0) return; if (send(client_socket, buffer, len, 0) == -1) { |
