Avoid literal-suffix error due to missing space.

This commit is contained in:
Bryan Drewery 2016-05-28 22:27:54 +00:00
parent ee972428cd
commit 1176e2a818

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