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

gEDA-cvs: branch: master updated (1.3.1-20080110-26-g58898d9)



The branch, master has been updated
       via  58898d9db5403355c3984d4c4c970e4477d7e85a (commit)
      from  5d619d94e6142ad683b26aa302348b3cf559d459 (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/g_funcs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


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

commit 58898d9db5403355c3984d4c4c970e4477d7e85a
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date:   Sat Jan 26 22:12:05 2008 -0500

    Fix a crash when running a script that calls (gschem-image ...)
    
    x_image_lowlevel frees the last parameter (filetype).  This free was
    causing a segfault when x_image_lowlevel was being passed a constant
    character string.  Bernd Jendrissek found this bug during an irc
    discussion.  Thanks.

:100644 100644 0705d70... a074251... M	gschem/src/g_funcs.c

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

commit 58898d9db5403355c3984d4c4c970e4477d7e85a
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date:   Sat Jan 26 22:12:05 2008 -0500

    Fix a crash when running a script that calls (gschem-image ...)
    
    x_image_lowlevel frees the last parameter (filetype).  This free was
    causing a segfault when x_image_lowlevel was being passed a constant
    character string.  Bernd Jendrissek found this bug during an irc
    discussion.  Thanks.

diff --git a/gschem/src/g_funcs.c b/gschem/src/g_funcs.c
index 0705d70..a074251 100644
--- a/gschem/src/g_funcs.c
+++ b/gschem/src/g_funcs.c
@@ -99,12 +99,12 @@ SCM g_funcs_image(SCM filename)
     x_image_lowlevel (global_window_current, output_filename,
                       global_window_current->image_width,
                       global_window_current->image_height,
-		      "png");
+		      g_strdup("png"));
   } else  {
     x_image_lowlevel (global_window_current, SCM_STRING_CHARS (filename),
                       global_window_current->image_width,
                       global_window_current->image_height,
-		      "png");
+		      g_strdup("png"));
   }
   
   return SCM_BOOL_T;




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