Avoid literal-suffix error due to missing space.

This commit is contained in:
bdrewery 2016-05-28 22:27:54 +00:00
parent 8356fc9267
commit 5de1668707

View File

@ -435,7 +435,7 @@ Event::TimestampEventString(std::string &eventString)
size_t eventEnd(eventString.find_last_not_of('\n') + 1);
if (gettimeofday(&now, NULL) != 0)
err(1, "gettimeofday");
snprintf(timebuf, bufsize, " timestamp=%"PRId64,
snprintf(timebuf, bufsize, " timestamp=%" PRId64,
(int64_t) now.tv_sec);
eventString.insert(eventEnd, timebuf);
}