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:
Mark Slee 2007-04-11 09:16:23 +00:00
parent cbc51600ee
commit 0f2916c3f6

View File

@ -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;