Skip to content

Commit

Permalink
Merge pull request #544 from guimaai/main
Browse files Browse the repository at this point in the history
Fix csv_size size
  • Loading branch information
AlbertShown authored Jan 23, 2025
2 parents d7a87ed + e0b09e3 commit 4dcf4ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webui.c
Original file line number Diff line number Diff line change
Expand Up @@ -9737,10 +9737,13 @@ static void _webui_ws_process(
csv_size += _webui_strlen(win->html_elements[i]) + 1;
}
}

if (win->has_all_events) {
csv_size++;
}
// Allocate
char* csv = (char*)_webui_malloc(csv_size);
csv[0] = 0x01;
csv_size--;

// Generate the bind list array (CSV)
for (size_t i = 0; i < WEBUI_MAX_IDS; i++) {
Expand Down

0 comments on commit 4dcf4ce

Please sign in to comment.