diff options
Diffstat (limited to 'common/printf.c')
-rw-r--r-- | common/printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/printf.c b/common/printf.c index 039a83a92f..14226800b6 100644 --- a/common/printf.c +++ b/common/printf.c @@ -494,7 +494,7 @@ static int snprintf_addchar(void *context, int c) return 0; } -int snprintf(char *str, int size, const char *format, ...) +int snprintf(char *str, size_t size, const char *format, ...) { va_list args; int rv; @@ -506,7 +506,7 @@ int snprintf(char *str, int size, const char *format, ...) return rv; } -int vsnprintf(char *str, int size, const char *format, va_list args) +int vsnprintf(char *str, size_t size, const char *format, va_list args) { struct snprintf_context ctx; int rv; |