Merge "strftime: Use snprintf() instead of sprintf()"
This commit is contained in:
commit
ac56f5ca2f
|
@ -407,9 +407,9 @@ label:
|
|||
tm = *t;
|
||||
mkt = mktime64(&tm);
|
||||
if (TYPE_SIGNED(time64_t))
|
||||
(void) sprintf(buf, "%lld",
|
||||
(void) snprintf(buf, sizeof(buf), "%lld",
|
||||
(long long) mkt);
|
||||
else (void) sprintf(buf, "%llu",
|
||||
else (void) snprintf(buf, sizeof(buf), "%llu",
|
||||
(unsigned long long) mkt);
|
||||
pt = _add(buf, pt, ptlim, modifier);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue