Skip to content
Snippets Groups Projects
Commit 33e108fc authored by Leon Bohnwagner's avatar Leon Bohnwagner :crab:
Browse files

fix: use correct packet size

parent 9298e877
Branches
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ int main(int argc, char* argv[]) {
memcpy(&packet.data, &cpu_temp, sizeof(cpu_temp));
if (write(pipe_fd, &packet, sizeof(packet)) == -1) {
if (write(pipe_fd, &packet, DAEMON_PACKET_HEADER_SIZE + packet.size) == -1) {
perror("Failed to write pipe");
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment