mirror of
https://github.com/nitanmarcel/isodrive.git
synced 2026-03-13 04:17:24 +00:00
util: fix sysfs_write
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ void sysfs_write(char *path, char *content)
|
|||||||
std::cout << "Write: " << content << " -> " << path << std::endl;
|
std::cout << "Write: " << content << " -> " << path << std::endl;
|
||||||
int fd;
|
int fd;
|
||||||
fd = open(path, O_WRONLY);
|
fd = open(path, O_WRONLY);
|
||||||
write(fd, content, 1);
|
write(fd, content, strlen(content));
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user