summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--attract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attract.c b/attract.c
index 9e093ec..9209a16 100644
--- a/attract.c
+++ b/attract.c
@@ -163,7 +163,7 @@ int main(int argc,char **argv){
printf("midy = %lf\n",cfg.midy);
printf("exponent = %lf\n",cfg.exponent);
- unsigned char img[cfg.width*cfg.height*3];
+ unsigned char *img=malloc(cfg.width*cfg.height*3);
int nthreads=sysconf(_SC_NPROCESSORS_ONLN);
if(nthreads==4)nthreads/=2;