points buffer in http handler is now sized correctly based on the number of gradient points

animation
Sara 2023-09-22 10:10:20 +02:00
parent abf576120f
commit 41b2eeb04c
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ void parse_leds_query(char* query_string, size_t query_size) {
return;
}
struct gradient_point_t* points = malloc(gradient_point_count * sizeof(union led_t));
struct gradient_point_t* points = malloc(gradient_point_count * sizeof(struct gradient_point_t));
for(int point = 0; point < gradient_point_count; ++point) {
sprintf(query_key, "r%d", point);