summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-07-31 03:45:42 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-07-31 03:45:42 (EDT)
commit5fe0ebd51de4eba549df3172fb0a4be32585be3b (patch)
treeca4b0132c94752ffddb5cf42b29e76c9078a764b
parenta31530c334fac67a5c051fd22f6f86dfbaf30e2c (diff)
tests: Fix dirent test with is_dir=1
opkg_opk_dirent_name_prefix() only adds a trailing slash if there's room in the name buffer.
-rw-r--r--tests/dirent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dirent.c b/tests/dirent.c
index 6446806..de20b86 100644
--- a/tests/dirent.c
+++ b/tests/dirent.c
@@ -38,7 +38,7 @@ main()
.name = "baz",
.parent = &bar,
};
- char name[8];
+ char name[9];
char pref[4];
puts("1..2");