Skip to content

Commit

Permalink
Add mising null terminator in tests/fs/test_nodefs_rw.c (#14371)
Browse files Browse the repository at this point in the history
Fixes: #14360
  • Loading branch information
sbc100 authored Jun 4, 2021
1 parent c024987 commit 32dfcc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/fs/test_nodefs_rw.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ int main() {
assert(file);
res = fread(buffer, sizeof(char), 6, file);
assert(res == 6);
buffer[6] = '\0';
fclose(file);

printf("fread -> '%s'\n", buffer);
assert(!strcmp(buffer, "yeehaw"));

// write out something new
Expand Down

0 comments on commit 32dfcc9

Please sign in to comment.