From 9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 21:12:14 +0000 Subject: More string safety stuff --- Stars45/NetBrokerClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/NetBrokerClient.cpp') diff --git a/Stars45/NetBrokerClient.cpp b/Stars45/NetBrokerClient.cpp index 139fd87..7783172 100644 --- a/Stars45/NetBrokerClient.cpp +++ b/Stars45/NetBrokerClient.cpp @@ -50,7 +50,7 @@ const char* password) if (broker.IPAddr() == 0) return result; - sprintf(buffer, "%d", port); + sprintf_s(buffer, "%d", port); msg = "GET http://"; msg += HOSTNAME; @@ -168,7 +168,7 @@ NetBrokerClient::GameList(const char* type, List& server_list) while (*p && *p != '\n') *d++ = *p++; if (*p) p++; - sscanf(buff, "%d", &port); + sscanf_s(buff, "%d", &port); } else if (!strncmp(p, "pass:", 5)) { p += 5; -- cgit v1.1