Merge "strftime: Use snprintf() instead of sprintf()"

This commit is contained in:
David Turner 2011-06-23 06:04:28 -07:00 committed by Android Code Review
commit ac56f5ca2f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}