From f1279be1e57a929b04067f35b0f5e2c9bb9c7810 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Sat, 23 Nov 2002 05:47:17 +0000 Subject: [PATCH] Fixed a segfault with very high resolutions. --- libs/video/renderer/sw/d_scan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/sw/d_scan.c b/libs/video/renderer/sw/d_scan.c index 1f9b132d8..cfba6c247 100644 --- a/libs/video/renderer/sw/d_scan.c +++ b/libs/video/renderer/sw/d_scan.c @@ -57,8 +57,10 @@ D_WarpScreen (void) int *turb; int *col; byte **row; - byte *rowptr[1024]; - int column[1280]; + + /* FIXME: allocate these arrays properly */ + byte *rowptr[1024 + AMP2 * 2]; + int column[1280 + AMP2 * 2]; float wratio, hratio; w = r_refdef.vrect.width;