vbe
[vidsys] / vidsys.c
index 43913c8..66f6811 100644 (file)
--- a/vidsys.c
+++ b/vidsys.c
@@ -42,7 +42,7 @@ int vid_init(void)
 
                for(j=0; j<drv->num_modes; j++) {
                        if(num_modes >= max_modes) {
-                               int newsz = max_modes ? max_modes * 2 : 8;
+                               int newsz = max_modes ? max_modes * 2 : 128;
                                void *tmp = realloc(modes, newsz * sizeof *modes);
                                if(!tmp) {
                                        fprintf(stderr, "failed to allocate modes list\n");