diff options
Diffstat (limited to 'node/PacketDecoder.cpp')
| -rw-r--r-- | node/PacketDecoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp index fd817410..18d8c4e2 100644 --- a/node/PacketDecoder.cpp +++ b/node/PacketDecoder.cpp @@ -635,9 +635,9 @@ bool PacketDecoder::_doNETWORK_CONFIG_REQUEST(const RuntimeEnvironment *_r,const request["meta"] = std::string((const char *)field(ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_DICT,dictLen),dictLen); request["type"] = "netconf-request"; request["peerId"] = peer->identity().toString(false); - sprintf(tmp,"%llx",(unsigned long long)nwid); + Utils::snprintf(tmp,sizeof(tmp),"%llx",(unsigned long long)nwid); request["nwid"] = tmp; - sprintf(tmp,"%llx",(unsigned long long)packetId()); + Utils::snprintf(tmp,sizeof(tmp),"%llx",(unsigned long long)packetId()); request["requestId"] = tmp; //TRACE("to netconf:\n%s",request.toString().c_str()); _r->netconfService->send(request); |
