diff src/video/x11/SDL_x11modes.c @ 1379:c0a74f199ecf

Use only safe string functions
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 23:46:34 +0000
parents 19418e4422cb
children d910939febfa
line wrap: on
line diff
--- a/src/video/x11/SDL_x11modes.c	Sun Feb 19 23:38:57 2006 +0000
+++ b/src/video/x11/SDL_x11modes.c	Sun Feb 19 23:46:34 2006 +0000
@@ -493,7 +493,7 @@
         }
         this->hidden->nvisuals = 0;
         if ( ! add_visual_byid(this, SDL_getenv("SDL_VIDEO_X11_VISUALID")) ) {
-                for ( i=0; i<SDL_TABLESIZE(depth_list); ++i ) {
+                for ( i=0; i<SDL_arraysize(depth_list); ++i ) {
                         if ( depth_list[i] > 8 ) {
                                 if ( use_directcolor ) {
                                         add_visual(this, depth_list[i], DirectColor);