r33164 - in trunk: gui/skin/skin.c help/help_mp-de.h help/help_mp-en.h
Author: ib Date: Thu Mar 31 11:09:54 2011 New Revision: 33164 Log: Add a check for unknown items. Issue error message in case of an unknown skin item. Modified: trunk/gui/skin/skin.c Changes in other areas also in this revision: Modified: trunk/help/help_mp-de.h trunk/help/help_mp-en.h Modified: trunk/gui/skin/skin.c ============================================================================== --- trunk/gui/skin/skin.c Thu Mar 31 11:03:53 2011 (r33163) +++ trunk/gui/skin/skin.c Thu Mar 31 11:09:54 2011 (r33164) @@ -914,6 +914,11 @@ int skinRead(char *dname) break; } } + + if (i == FF_ARRAY_ELEMS(skinItem)) { + skin_error(MSGTR_SKIN_UNKNOWN_ITEM, item); + return -2; + } } if (linenumber == 0) {
participants (1)
-
ib