summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/modules/thomson.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/modules/thomson.cpp')
-rw-r--r--src/tools/imgtool/modules/thomson.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/imgtool/modules/thomson.cpp b/src/tools/imgtool/modules/thomson.cpp
index 2acb03d8b01..131fd422c17 100644
--- a/src/tools/imgtool/modules/thomson.cpp
+++ b/src/tools/imgtool/modules/thomson.cpp
@@ -1740,7 +1740,7 @@ static imgtoolerr_t thom_basic_write_file(imgtool::partition &partition,
if ((c == '\r') || (c == '\n'))
break;
- if (pos <= ARRAY_LENGTH(buf) - 1)
+ if (pos <= std::size(buf) - 1)
{
buf[pos++] = c;
}