util: fix sysfs_write

This commit is contained in:
Marcel Alexandru Nitan
2023-01-31 20:59:42 +02:00
parent f55ca622aa
commit 68cc01c473

View File

@@ -60,7 +60,7 @@ void sysfs_write(char *path, char *content)
std::cout << "Write: " << content << " -> " << path << std::endl;
int fd;
fd = open(path, O_WRONLY);
write(fd, content, 1);
write(fd, content, strlen(content));
close(fd);
}