nessus-core/nessus/prefs_dialog prefs_dialog.c,1.48,1.48.4.1



Update of /usr/local/cvs/nessus-core/nessus/prefs_dialog
In directory raccoon.nessus.org:/tmp/cvs-serv38166/prefs_dialog

Modified Files:
      Tag: NESSUS_2_2
	prefs_dialog.c 
Log Message:
Fix for bug #1047 ported from HEAD/BOSS: String returned by gtk_entry_get_text
was stored in preferences without duplicating it.


Index: prefs_dialog.c
===================================================================
RCS file: /usr/local/cvs/nessus-core/nessus/prefs_dialog/prefs_dialog.c,v
retrieving revision 1.48
retrieving revision 1.48.4.1
diff -u -d -r1.48 -r1.48.4.1
--- prefs_dialog.c	15 Aug 2004 14:18:06 -0000	1.48
+++ prefs_dialog.c	8 Nov 2004 11:10:47 -0000	1.48.4.1
@@ -871,7 +871,7 @@
     arg_add_value(serv, "detached_scan", ARG_STRING, strlen(s), s);  
   
    gtkw = arg_get_value(t, "EMAIL_ADDR");
-   s = (char*)gtk_entry_get_text(GTK_ENTRY(gtkw));
+   s = estrdup(gtk_entry_get_text(GTK_ENTRY(gtkw)));
    arg_set_value(serv, "detached_scan_email_address", strlen(s), s);
    
    





This archive was generated by a fusion of Pipermail 0.09 (Mailman edition) and MHonArc 2.6.8.