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

* commit 'ac56f5ca2f4c54ddbd37b033f9465d89542c2cbe':
  strftime: Use snprintf() instead of sprintf()
This commit is contained in:
David Turner 2011-06-23 06:13:53 -07:00 committed by Android Git Automerger
commit cd9f1f0b27

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