mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
commit
7793333ed3
|
@ -196,6 +196,7 @@ static void filesystem_cat(char *filename) {
|
|||
if (info.size > 0) {
|
||||
char *buf = malloc(info.size + 1);
|
||||
filesystem_read_file(filename, buf, info.size);
|
||||
buf[info.size] = '\0';
|
||||
printf("%s\n", buf);
|
||||
free(buf);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue