summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c
index 94fc295938..e72648cfae 100644
--- a/firmware/common/sprintf.c
+++ b/firmware/common/sprintf.c
@@ -138,7 +138,7 @@ static int sprfunc(void *ptr, unsigned char letter)
}
-int snprintf(char *buf, int size, const char *fmt, ...)
+int snprintf(char *buf, size_t size, const char *fmt, ...)
{
bool ok;
va_list ap;