From 0076a11b467dce1233194ce228287a2a127b1f5d Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 24 Jan 2007 23:29:42 +0000 Subject: Each file in this commit has the issue where it is possible for code to overrun static buffers. This could lead to serious problems. Granted it is almost impossible to do that. But it isn't totally impossible. So this commit makes it impossible to overrun. --- (limited to 'noncore/styles') diff --git a/noncore/styles/theme/othemebase.cpp b/noncore/styles/theme/othemebase.cpp index 4275dd6..7fb12a3 100644 --- a/noncore/styles/theme/othemebase.cpp +++ b/noncore/styles/theme/othemebase.cpp @@ -1004,7 +1004,7 @@ void OThemeBase::readResourceGroup( int i, QString *copyfrom, QString *pixnames, break; } } - if ( loadArray[ sIndex ] ) { + if ( sIndex < 54 && loadArray[ sIndex ] ) { copyWidgetConfig( sIndex, i, pixnames, brdnames ); } else -- cgit v0.9.0.2