Skip to content

Commit b3f353f

Browse files
committed
Fixed warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa.
1 parent d2ad469 commit b3f353f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace bin2cpp
9292
//try to convert the int value back to string and check for equality.
9393
static const int BUFFER_SIZE = 1024;
9494
char buffer[BUFFER_SIZE];
95-
itoa(intValue, buffer, 10);
95+
_itoa(intValue, buffer, 10);
9696
if (std::string(buffer) == iValue)
9797
return true;
9898
return false;
@@ -172,7 +172,7 @@ namespace bin2cpp
172172
std::string getTemporaryFileName()
173173
{
174174
char rndvalue[1024];
175-
itoa(rand(), rndvalue, 10);
175+
_itoa(rand(), rndvalue, 10);
176176

177177
std::string name = std::string("random") + rndvalue + ".tmp";
178178
return name;

0 commit comments

Comments
 (0)