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