Fix minor issues in user apps

Uninitialized variables, reading past array end, etc.
This commit is contained in:
2026-08-25 21:41:25 +03:00
parent d72169473f
commit b78ef69da8
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
#define BLOCK_SIZE 65536
exit_code_t pass(uint64_t fd) {
static char buffer[BLOCK_SIZE];
char buffer[BLOCK_SIZE];
uint64_t bytes;
uint64_t total = 0;
while ((bytes = read(fd, BLOCK_SIZE, buffer))) {