summaryrefslogtreecommitdiff
path: root/node/Address.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Address.hpp')
-rw-r--r--node/Address.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Address.hpp b/node/Address.hpp
index 8baf9dbe..805c439d 100644
--- a/node/Address.hpp
+++ b/node/Address.hpp
@@ -32,7 +32,9 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
+
#include <string>
+
#include "Utils.hpp"
#include "MAC.hpp"
#include "Constants.hpp"
@@ -198,7 +200,7 @@ public:
inline std::string toString() const
{
char buf[16];
- sprintf(buf,"%.10llx",(unsigned long long)_a);
+ Utils::snprintf(buf,sizeof(buf),"%.10llx",(unsigned long long)_a);
return std::string(buf);
};