[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: branch: master updated (1.1.2.20070818-156-g0a5ba35)
The branch, master has been updated
via 0a5ba355c6719172ec1e6325108d5c0e716d1a2e (commit)
from 3b040cf8d60a8fbe45f6e7c5f3d71a3dea119357 (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
=========
gschem/src/x_image.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit 0a5ba355c6719172ec1e6325108d5c0e716d1a2e
Author: Robert Fitzsimons <robfitz@xxxxxxxx>
Date: Fri Dec 21 14:13:51 2007 +0000
gschem: Fix segfault when trying to write an image.
The change to split out gschem TOPLEVEL variables, left some code
which tries to copy the TOPLEVEL variables from the old data
structure. This caused a segfalut to happen on my system.
:100644 100644 260911c... aad3eb5... M gschem/src/x_image.c
=========
Changes
=========
commit 0a5ba355c6719172ec1e6325108d5c0e716d1a2e
Author: Robert Fitzsimons <robfitz@xxxxxxxx>
Date: Fri Dec 21 14:13:51 2007 +0000
gschem: Fix segfault when trying to write an image.
The change to split out gschem TOPLEVEL variables, left some code
which tries to copy the TOPLEVEL variables from the old data
structure. This caused a segfalut to happen on my system.
diff --git a/gschem/src/x_image.c b/gschem/src/x_image.c
index 260911c..aad3eb5 100644
--- a/gschem/src/x_image.c
+++ b/gschem/src/x_image.c
@@ -649,7 +649,7 @@ GdkPixbuf *x_image_get_pixbuf (GSCHEM_TOPLEVEL *w_current)
/* Do a copy of the w_current struct and work with it */
memcpy(&new_w_current, w_current, sizeof(GSCHEM_TOPLEVEL));
/* Do a copy of the toplevel struct and work with it */
- memcpy(&toplevel, w_current, sizeof(TOPLEVEL));
+ memcpy(&toplevel, w_current->toplevel, sizeof(TOPLEVEL));
new_w_current.toplevel = &toplevel;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs