0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00
This commit is contained in:
2025-12-29 11:15:25 +01:00
parent 7ac58c9fa1
commit 4fdcafc559
3 changed files with 6 additions and 6 deletions

View File

@@ -58,9 +58,9 @@ void poll_udp_server() {
strncpy(cmd_buf, token, BUF_SIZE - 1);
memset(cmd_output, 0, BUF_SIZE);
run_lua(cmd_buf, cmd_output);
size_t out_len = strlen(cmd_output);
size_t out_len = 0;
run_lua(cmd_buf, cmd_output, &out_len);
if (out_len > 0 && sendto(sockfd, cmd_output, out_len, 0, (struct sockaddr *)&client_addr, client_len) == -1) perror("sendto"); // no walrus
}
token = strtok(NULL, "\r\n");