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/NetLobby.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/NetLobby.cpp') diff --git a/Stars45/NetLobby.cpp b/Stars45/NetLobby.cpp index a29068e..fa27fb3 100644 --- a/Stars45/NetLobby.cpp +++ b/Stars45/NetLobby.cpp @@ -331,12 +331,12 @@ NetLobby::FindUserByAddr(const NetAddr& addr) NetUser* NetLobby::FindUserByName(const char* name) { - if (local_user && !stricmp(local_user->Name(), name)) + if (local_user && !_stricmp(local_user->Name(), name)) return local_user; for (int i = 0; i < users.size(); i++) { NetUser* u = users[i]; - if (!stricmp(u->Name(), name)) + if (!_stricmp(u->Name(), name)) return u; } @@ -603,7 +603,7 @@ NetUnitEntry::GetDescription() const if (elem) { static char buffer[1024]; - sprintf(buffer, "name \"%s\" index %d design \"%s\" iff %d user \"%s\" lives %d hull %d role %d lock %d ", + sprintf_s(buffer, "name \"%s\" index %d design \"%s\" iff %d user \"%s\" lives %d hull %d role %d lock %d ", elem.data(), index, design.data(), -- cgit v1.1