summaryrefslogtreecommitdiff
path: root/orkbasecxx
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-06-13 20:36:26 +0000
committerHenri Herscher <henri@oreka.org>2007-06-13 20:36:26 +0000
commit517af5661d24adf948dc67fea6c935edf8f7a960 (patch)
tree14bc4997819be285defb049ba9e5f3a4bb79f313 /orkbasecxx
parent503bb1cbfd003bb272ab952245905b0093160559 (diff)
Fixed compilation error under Windows.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@447 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx')
-rw-r--r--orkbasecxx/MemUtils.cpp16
1 files changed, 9 insertions, 7 deletions
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;
+ }
}