summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/modules/prodos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/modules/prodos.cpp')
-rw-r--r--src/tools/imgtool/modules/prodos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/imgtool/modules/prodos.cpp b/src/tools/imgtool/modules/prodos.cpp
index 6db41ae529b..2bce71da781 100644
--- a/src/tools/imgtool/modules/prodos.cpp
+++ b/src/tools/imgtool/modules/prodos.cpp
@@ -1183,7 +1183,7 @@ static imgtoolerr_t prodos_lookup_path(imgtool::image &image, const char *path,
ent->key_pointer[0] = new_file_block;
ent->file_type = 0x3F3F3F3F;
ent->file_creator = 0x3F3F3F3F;
- strncpy(ent->filename, old_path, ARRAY_LENGTH(ent->filename));
+ strncpy(ent->filename, old_path, std::size(ent->filename));
/* and place it */
err = prodos_put_dirent(image, direnum, ent);