summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/ui_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 9f7aacc7..8b516f05 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -3982,7 +3982,7 @@ void UI_ParseResolutions( void )
p = buf;
uiInfo.numResolutions = 0;
- while( String_Parse( &p, &out ) )
+ while( uiInfo.numResolutions < MAX_RESOLUTIONS && String_Parse( &p, &out ) )
{
Q_strncpyz( w, out, sizeof( w ) );
s = strchr( w, 'x' );