diff options
author | Colin Snover | 2017-09-23 03:19:32 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-23 20:57:01 -0500 |
commit | 475bb5f91a02899db9fb3ced0dc564709e5946c0 (patch) | |
tree | 1fa9adeb49bf42efc931efeebaee5567fc6b3b67 /engines/sci/engine | |
parent | a63f516df02b5879c51b923b2f1751a312ece26b (diff) | |
download | scummvm-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.
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/guest_additions.cpp | 2 |
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; } |