aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-09-23 03:19:32 -0500
committerColin Snover2017-09-23 20:57:01 -0500
commit475bb5f91a02899db9fb3ced0dc564709e5946c0 (patch)
tree1fa9adeb49bf42efc931efeebaee5567fc6b3b67
parenta63f516df02b5879c51b923b2f1751a312ece26b (diff)
downloadscummvm-rg350-475bb5f91a02899db9fb3ced0dc564709e5946c0.tar.gz
scummvm-rg350-475bb5f91a02899db9fb3ced0dc564709e5946c0.tar.bz2
scummvm-rg350-475bb5f91a02899db9fb3ced0dc564709e5946c0.zip
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.
-rw-r--r--engines/sci/engine/guest_additions.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}