Skip to content

Commit

Permalink
Fix by Laurent Desnogues for my feeble attempt at a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Jun 21, 2011
1 parent 2d1187b commit d9ea902
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/q3_ui/ui_video.c
Expand Up @@ -427,10 +427,12 @@ static void GraphicsOptions_GetAspectRatios( void )
char str[ sizeof(ratioBuf[0]) ];

// calculate resolution's aspect ratio
x = strchr( resolutions[r], 'x' ) + 1;
x = strchr( resolutions[r], 'x' );

if(!x)
continue;

x++;

Q_strncpyz( str, resolutions[r], x-resolutions[r] );
w = atoi( str );
Expand Down

0 comments on commit d9ea902

Please sign in to comment.