diff --git a/src/util.cpp b/src/util.cpp index 86f4b97..a7bc911 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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); }