summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/console')
-rw-r--r--src/console/vtxprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c
index d20a387d44..5f37253e7d 100644
--- a/src/console/vtxprintf.c
+++ b/src/console/vtxprintf.c
@@ -228,7 +228,7 @@ repeat:
if (!s)
s = "<NULL>";
- len = strnlen(s, precision);
+ len = strnlen(s, (size_t)precision);
if (!(flags & LEFT))
while (len < field_width--)