|
From: <gi...@gp...> - 2011-12-24 01:52:21
|
The branch, master has been updated
via 8e70de4d87dd2bf1979ddf17ce235bb0e2f7d113 (commit)
from ff2492399fd4743c3fd89ffd4fe6650ad0d80a4a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/mymem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
=================
Commit Messages
=================
commit 8e70de4d87dd2bf1979ddf17ce235bb0e2f7d113
Author: Peter Clifton <pc...@ca...>
Commit: Peter Clifton <pc...@ca...>
mymem.c: Fix incorrect types passed to sizeof() in a couple of places
(Caught by coverity)
Coverity-cid: 242
Coverity-cid: 243
Coverity-cid: 244
Coverity-cid: 245
:100644 100644 f7939e7... c79e068... M src/mymem.c
=========
Changes
=========
commit 8e70de4d87dd2bf1979ddf17ce235bb0e2f7d113
Author: Peter Clifton <pc...@ca...>
Commit: Peter Clifton <pc...@ca...>
mymem.c: Fix incorrect types passed to sizeof() in a couple of places
(Caught by coverity)
Coverity-cid: 242
Coverity-cid: 243
Coverity-cid: 244
Coverity-cid: 245
diff --git a/src/mymem.c b/src/mymem.c
index f7939e7..c79e068 100644
--- a/src/mymem.c
+++ b/src/mymem.c
@@ -475,10 +475,10 @@ GetDrillElementMemory (DrillTypePtr Drill)
{
Drill->ElementMax += STEP_ELEMENT;
element = (ElementTypePtr *)realloc (element,
- Drill->ElementMax * sizeof (ElementTypeHandle));
+ Drill->ElementMax * sizeof (ElementTypePtr));
Drill->Element = element;
memset (element + Drill->ElementN, 0,
- STEP_ELEMENT * sizeof (ElementTypeHandle));
+ STEP_ELEMENT * sizeof (ElementTypePtr));
}
return (element + Drill->ElementN++);
}
@@ -497,9 +497,9 @@ GetDrillPinMemory (DrillTypePtr Drill)
if (Drill->PinN >= Drill->PinMax)
{
Drill->PinMax += STEP_POINT;
- pin = (PinTypePtr *)realloc (pin, Drill->PinMax * sizeof (PinTypeHandle));
+ pin = (PinTypePtr *)realloc (pin, Drill->PinMax * sizeof (PinTypePtr));
Drill->Pin = pin;
- memset (pin + Drill->PinN, 0, STEP_POINT * sizeof (PinTypeHandle));
+ memset (pin + Drill->PinN, 0, STEP_POINT * sizeof (PinTypePtr));
}
return (pin + Drill->PinN++);
}
|