[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (ff2492399fd4743c3fd89ffd4fe6650ad0d80a4a)



The branch, master has been updated
       via  ff2492399fd4743c3fd89ffd4fe6650ad0d80a4a (commit)
      from  61c26f1310e18f58e20088023cd3e4a6ce3bbe61 (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/djopt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit ff2492399fd4743c3fd89ffd4fe6650ad0d80a4a
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    djopt.c: Allocate correct size for structure pointer
    
    (Caught by coverity)
    
    Coverity-cid: 239

:100644 100644 daeae0a... a377508... M	src/djopt.c

=========
 Changes
=========

commit ff2492399fd4743c3fd89ffd4fe6650ad0d80a4a
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    djopt.c: Allocate correct size for structure pointer
    
    (Caught by coverity)
    
    Coverity-cid: 239

diff --git a/src/djopt.c b/src/djopt.c
index daeae0a..a377508 100644
--- a/src/djopt.c
+++ b/src/djopt.c
@@ -1331,7 +1331,7 @@ orthopull_1 (corner_s * c, int fdir, int rdir, int any_sel)
       if (ln >= lm)
 	{
 	  lm = ln + 10;
-	  ls = (line_s **) realloc (ls, lm * sizeof (line_s));
+	  ls = (line_s **) realloc (ls, lm * sizeof (line_s *));
 	}
       ls[ln++] = l;
       c2 = other_corner (l, c2);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs