mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
sprintf fix on C++ tutorial server
Reviewed By: danli Test Plan: hello git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cbc51600ee
commit
0f2916c3f6
@ -69,7 +69,9 @@ class CalculatorHandler : public CalculatorIf {
|
||||
|
||||
SharedStruct ss;
|
||||
ss.key = logid;
|
||||
ss.value = "5";
|
||||
char buffer[11];
|
||||
sprintf(buffer, "%d", val);
|
||||
ss.value = buffer;
|
||||
|
||||
log[logid] = ss;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user