points buffer in http handler is now sized correctly based on the number of gradient points
parent
abf576120f
commit
41b2eeb04c
|
@ -40,7 +40,7 @@ void parse_leds_query(char* query_string, size_t query_size) {
|
||||||
return;
|
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) {
|
for(int point = 0; point < gradient_point_count; ++point) {
|
||||||
sprintf(query_key, "r%d", point);
|
sprintf(query_key, "r%d", point);
|
||||||
|
|
Loading…
Reference in New Issue