Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f6230
)
ecere/com/instance.ec (realloc) fix
author
Jerome St-Louis
<jerome@ecere.com>
Sun, 15 Feb 2015 18:46:07 +0000
(13:46 -0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Sun, 15 Feb 2015 18:46:07 +0000
(13:46 -0500)
ecere/src/com/instance.ec
patch
|
blob
|
history
diff --git
a/ecere/src/com/instance.ec
b/ecere/src/com/instance.ec
index
0fc1519
..
3ce29c6
100644
(file)
--- a/
ecere/src/com/instance.ec
+++ b/
ecere/src/com/instance.ec
@@
-1308,6
+1308,7
@@
static void * _myrealloc(void * pointer, unsigned int size)
TOTAL_MEM += size - newBlock.size;
OUTSIDE_MEM += size - newBlock.size;
newPointer = ((struct MemBlock *)newBlock + 1);
+ newBlock.size = size;
}
}
}