From ae044d6faef1639e32436475010717d5ccff5e42 Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Tue, 27 Aug 2019 10:18:29 +0200 Subject: [PATCH] fix memory access bug trying to concatenate into a string constant --- externals/unauthorized/cooled~.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/unauthorized/cooled~.c b/externals/unauthorized/cooled~.c index 0d3463460..faea7014b 100644 --- a/externals/unauthorized/cooled~.c +++ b/externals/unauthorized/cooled~.c @@ -259,7 +259,7 @@ static void cooled_erase_block(t_cooled *x, t_glist *glist, int sample ) for ( i=0; i<x->x_zoom; i++ ) { - strcpy( x->x_gifdata+i*sizeof("#FFFFFF "), strcat( COOLED_BGCOLOR, " ") ); + strcat(strcpy( x->x_gifdata+i*sizeof("#FFFFFF "), COOLED_BGCOLOR), " "); } if ( glist_isvisible( x->x_glist ) ) SYS_VGUI5("COOLEDIMAGE%x put {%s} -to %d %d\n", x, x->x_gifdata, -- GitLab