From 475bb5f91a02899db9fb3ced0dc564709e5946c0 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 23 Sep 2017 03:19:32 -0500 Subject: SCI32: Remove unnecessary use of strncmp One of the strings is a static string of the same size as the size passed to strncmp so there is no point in not just using strcmp. --- engines/sci/engine/guest_additions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/engine/guest_additions.cpp b/engines/sci/engine/guest_additions.cpp index e74a5d6e3f..6a1c51065c 100644 --- a/engines/sci/engine/guest_additions.cpp +++ b/engines/sci/engine/guest_additions.cpp @@ -446,7 +446,7 @@ void GuestAdditions::patchGameSaveRestorePhant2(Script &script) const { for (ObjMap::const_iterator it = objects.begin(); it != objects.end(); ++it) { const Object &obj = it->_value; - if (strncmp(_segMan->derefString(obj.getNameSelector()), "srGetGame", 9) != 0) { + if (strcmp(_segMan->derefString(obj.getNameSelector()), "srGetGame") != 0) { continue; } -- cgit v1.2.3