[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #234 from google/FF0F89A9FFB90668CB5E5C968FD01756
Browse files Browse the repository at this point in the history
(AUTOMATIC) opensource update
  • Loading branch information
battre committed Jan 9, 2023
2 parents 4bd5f22 + 9eca178 commit f471330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/validating_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ bool UnwrapHeader(const char* header_prefix,
void ValidatingUtil::Wrap(time_t timestamp, std::string* data) {
assert(data != nullptr);
char timestamp_string[2 + 3 * sizeof timestamp];
int size =
std::sprintf(timestamp_string, "%ld", static_cast<long>(timestamp));
int size = std::snprintf(timestamp_string, sizeof(timestamp_string), "%ld",
static_cast<long>(timestamp));
assert(size > 0);
assert(size < sizeof timestamp_string);
(void)size;
Expand Down

0 comments on commit f471330

Please sign in to comment.