summaryrefslogtreecommitdiffstats
path: root/movement/filesystem.c
diff options
context:
space:
mode:
authorTheOnePerson <a.nebinger@web.de>2023-05-18 09:42:13 +0200
committerTheOnePerson <a.nebinger@web.de>2023-05-18 09:42:13 +0200
commit7331851c7762cb1061f5c6d7c64593a1aa1fe7f8 (patch)
tree3e64a5d07e0e96698dde795034e2861697eca54f /movement/filesystem.c
parent45e4bc31c4642baa9081f7f779b4d31e214e48d8 (diff)
parent798b29f297e139743eacb74ec24647bd108ea189 (diff)
downloadSensor-Watch-7331851c7762cb1061f5c6d7c64593a1aa1fe7f8.tar.gz
Sensor-Watch-7331851c7762cb1061f5c6d7c64593a1aa1fe7f8.tar.bz2
Sensor-Watch-7331851c7762cb1061f5c6d7c64593a1aa1fe7f8.zip
Merge branch 'main' into timer-face
# Conflicts: # movement/make/Makefile # movement/movement_faces.h
Diffstat (limited to 'movement/filesystem.c')
-rw-r--r--movement/filesystem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/movement/filesystem.c b/movement/filesystem.c
index 2b345eda..97e35455 100644
--- a/movement/filesystem.c
+++ b/movement/filesystem.c
@@ -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 {