aboutsummaryrefslogtreecommitdiffstats
path: root/security/zenmap/files/patch-ac
blob: 855630c4c89d2bd9e36e2723bacec050e6868844 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- gladesig.c.orig Mon Aug 30 11:27:21 1999
+++ gladesig.c  Sun Apr  1 22:31:42 2001
@@ -163,7 +163,7 @@
 on_Get_Nmap_Version_activate           (GtkMenuItem    *menuitem,
                                         gpointer        user_data)
 {
-     execute("nmap -V");
+     execute( NMAP_PATH "nmap -V");
 }
 
 
@@ -467,7 +467,8 @@
 if (size > command_size)
   command = realloc(command, size);
 
- strcpy(command, "nmap ");
+ strcpy(command, NMAP_PATH);
+ strcat(command, "nmap ");
  /*Uhm... yeah.. Spit out which scan to perform based
    on the which_scan variable */
  
@@ -487,7 +488,7 @@
    strncat(command, " -sR ", 5);
    
  if (GTK_TOGGLE_BUTTON(MW->fast_check)->active)
-   strncat(command, " -F ", 3);
+   strncat(command, " -F ", 4);
  
  if (GTK_TOGGLE_BUTTON(MW->range_check)->active) {
    val = gtk_entry_get_text(GTK_ENTRY(MW->range_text));