summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 15:37:22 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 15:37:22 +0000
commitd489095bcdf9603053ebd514588093a991605ffb (patch)
treedb03ad0a00e1466fef64290adfecd67bc9373d1c /FoundationEx
parent4f272a3e310be77b4ba16fdfd2c9b6735f411037 (diff)
downloadstarshatter-d489095bcdf9603053ebd514588093a991605ffb.zip
starshatter-d489095bcdf9603053ebd514588093a991605ffb.tar.gz
starshatter-d489095bcdf9603053ebd514588093a991605ffb.tar.bz2
More string and fopen safety measures
Diffstat (limited to 'FoundationEx')
-rw-r--r--FoundationEx/MemDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/FoundationEx/MemDebug.cpp b/FoundationEx/MemDebug.cpp
index ce8a63c..5030653 100644
--- a/FoundationEx/MemDebug.cpp
+++ b/FoundationEx/MemDebug.cpp
@@ -47,7 +47,7 @@ static void heapdump()
hinfo._pentry = NULL;
while ((heapstatus = _heapwalk( &hinfo )) == _HEAPOK) {
- sprintf(report, "%6s block at %Fp of size %4.4X\n",
+ sprintf_s(report, "%6s block at %Fp of size %4.4X\n",
( hinfo._useflag == _USEDENTRY ? "USED" : "FREE" ),
hinfo._pentry, hinfo._size);
@@ -59,7 +59,7 @@ static void heapdump()
avail += hinfo._size;
}
- sprintf(report, "------\nUsed Blocks: %d\nAvail Blocks: %d\nTotal Blocks: %d\n", used, avail, used+avail);
+ sprintf_s(report, "------\nUsed Blocks: %d\nAvail Blocks: %d\nTotal Blocks: %d\n", used, avail, used+avail);
_RPT0(_CRT_WARN, report);
switch (heapstatus) {