"const char *" strings should be compared via strcmp and not via !=/==.

svn-id: r48092
This commit is contained in:
Johannes Schickel 2010-02-20 01:57:34 +00:00
parent b51568ddaf
commit 9b467ee4ff

View File

@ -210,7 +210,7 @@ int loadBackground(const char *name, int idx) {
MemFree(ptrToFree);
if (name != backgroundTable[idx].name) {
if (strcmp(name, backgroundTable[idx].name)) {
if (strlen(name) > sizeof(backgroundTable[idx].name))
warning("background name length exceeded allowable maximum");