Skip to content

Commit 161f19e

Browse files
committed
Fixed a derp in DLLSocket.dll
Ohgodwhy
1 parent 7f5db7a commit 161f19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: DLLSocket/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extern "C" DLL_EXPORT const char* recv_message(int n, char *v[])
120120
if(sender.sin_addr.s_addr != addr.sin_addr.s_addr) {
121121
continue; // not our connection, ignore and try again
122122
} else {
123-
return_buffer[rc] = '0'; // 0-terminate the string
123+
return_buffer[rc] = 0; // 0-terminate the string
124124
return return_buffer;
125125
}
126126
}

0 commit comments

Comments
 (0)