Skip to content

Commit

Permalink
Merge pull request #46 from cyshi/master
Browse files Browse the repository at this point in the history
Fix compiler complaining about snprintf's parameter
  • Loading branch information
bluebore committed Dec 5, 2015
2 parents df153ff + 0380e87 commit 9e16b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sofa/pbrpc/ptime.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ inline std::string ptime_to_string(const PTime& t)
PTime::date_type date = lt.date();
TimeDuration tod = lt.time_of_day();
char buf[64];
snprintf(buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d.%06lld",
snprintf(buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d.%06ld",
(int)date.year(),
(int)date.month(),
(int)date.day(),
Expand Down

0 comments on commit 9e16b11

Please sign in to comment.