antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/gtkshell button.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/gtkshell button.c
Date: Mon, 16 Apr 2007 02:35:56 +0000

CVSROOT:        /sources/antiright
Module name:    antiright
Changes by:     Jeffrey Bedard <jefbed> 07/04/16 02:35:56

Modified files:
        gtkshell       : button.c 

Log message:
        Memory for the callback command string of the command button
        is now allocated for the callback structure, as the storage location
        is destroyed in case of GUIDL button.  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/button.c?cvsroot=antiright&r1=1.23&r2=1.24

Patches:
Index: button.c
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/button.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- button.c    16 Apr 2007 01:19:51 -0000      1.23
+++ button.c    16 Apr 2007 02:35:56 -0000      1.24
@@ -59,9 +59,7 @@
        cb = (struct GSH_CBData *) xmalloc(sizeof(struct GSH_CBData));
 
        cb->gsh = gsh;
-       cb->data = command;     /* command from argv, literal, or
-                                * preallocated
-                                * */
+       cb->data = g_strdup(command);
 
        return cb;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]