Skip to content
Snippets Groups Projects
Commit ae044d6f authored by Albert Gräf's avatar Albert Gräf
Browse files

fix memory access bug trying to concatenate into a string constant

parent f18554b4
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment