Don't do drugs kids

This commit is contained in:
Inori 2019-08-10 03:49:31 -04:00 committed by Inori
parent e8fe65f862
commit 6a046a91e7

View file

@ -277,7 +277,7 @@ int main(int argc, char *argv[])
if (WSAStartup(0x101, &wsadata) || wsadata.wVersion != 0x101)
{
char buf[200];
sprintf(&buf, "Error initializing winsock: %08X", WSAGetLastError());
snprintf(buf, sizeof(buf), "Error initializing winsock: %08X", WSAGetLastError());
showInitError(std::string(buf)); // Not an error worth ending the program over
}
#endif