[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (61c26f1310e18f58e20088023cd3e4a6ce3bbe61)
The branch, master has been updated
via 61c26f1310e18f58e20088023cd3e4a6ce3bbe61 (commit)
from ff24fd3c66a2da86b55b2d2c0e2af56cec0d5bde (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/undo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit 61c26f1310e18f58e20088023cd3e4a6ce3bbe61
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
undo.c: Fix incorrect sizeof() when allocting memory for netlist undo
(Caught by coverity)
Coverity-cid: 241
:100644 100644 87e02aa... c3fc57e... M src/undo.c
=========
Changes
=========
commit 61c26f1310e18f58e20088023cd3e4a6ce3bbe61
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
undo.c: Fix incorrect sizeof() when allocting memory for netlist undo
(Caught by coverity)
Coverity-cid: 241
diff --git a/src/undo.c b/src/undo.c
index 87e02aa..c3fc57e 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -1646,7 +1646,7 @@ AddNetlistLibToUndoList (LibraryTypePtr lib)
undo->Data.NetlistChange.lib = lib;
/* and what the old data is that we'll need to restore */
- undo->Data.NetlistChange.old = (LibraryTypePtr)malloc (sizeof (LibraryTypePtr));
+ undo->Data.NetlistChange.old = (LibraryTypePtr)malloc (sizeof (LibraryType));
old = undo->Data.NetlistChange.old;
old->MenuN = lib->MenuN;
old->MenuMax = lib->MenuMax;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs