From 517af5661d24adf948dc67fea6c935edf8f7a960 Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Wed, 13 Jun 2007 20:36:26 +0000 Subject: Fixed compilation error under Windows. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@447 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkbasecxx/MemUtils.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'orkbasecxx') diff --git a/orkbasecxx/MemUtils.cpp b/orkbasecxx/MemUtils.cpp index 029f85b..5fd8994 100644 --- a/orkbasecxx/MemUtils.cpp +++ b/orkbasecxx/MemUtils.cpp @@ -11,6 +11,7 @@ * */ +#include "ace/OS_NS_stdio.h" #include "ace/OS_NS_stdlib.h" #include "ace/OS_NS_strings.h" #include "ace/OS_NS_ctype.h" @@ -105,14 +106,15 @@ char* MemGrabLine(char* start, char* limit, CStdString& out) void MemMacToHumanReadable(unsigned char* macAddress, CStdString&output) { - char byteAsHex[10]; + char byteAsHex[10]; - for(int i=0; i<6; i++) - { - snprintf(byteAsHex, sizeof(byteAsHex), "%.2x", macAddress[i]); + for(int i=0; i<6; i++) + { + ACE_OS::snprintf(byteAsHex, sizeof(byteAsHex), "%.2x", macAddress[i]); if(output.size()) + { output += ":"; - - output += byteAsHex; - } + } + output += byteAsHex; + } } -- cgit v1.2.3