libs/libc/time/lib_strftime.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-09 20:04:00 +09:00 committed by Xiang Xiao
parent 08b4cb6517
commit 9c08c53e81

View File

@ -397,8 +397,8 @@ size_t strftime(FAR char *s, size_t max, FAR const char *format,
case 's':
{
len = snprintf(dest, chleft, "%d",
mktime((FAR struct tm *)tm));
len = snprintf(dest, chleft, "%ju",
(uintmax_t)mktime((FAR struct tm *)tm));
}
break;