diff options
Diffstat (limited to 'net/gnome-nettool/files/patch-src_nettool.c')
-rw-r--r-- | net/gnome-nettool/files/patch-src_nettool.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net/gnome-nettool/files/patch-src_nettool.c b/net/gnome-nettool/files/patch-src_nettool.c new file mode 100644 index 000000000..1009298e6 --- /dev/null +++ b/net/gnome-nettool/files/patch-src_nettool.c @@ -0,0 +1,37 @@ +--- src/nettool.c.orig Fri Apr 14 08:36:08 2006 ++++ src/nettool.c Fri May 12 15:54:15 2006 +@@ -24,6 +24,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/socket.h> ++#include <netinet/in.h> + #include <signal.h> + #include <errno.h> + #include <sys/wait.h> +@@ -360,6 +361,10 @@ netinfo_io_text_buffer_dialog (GIOChanne + len, NULL); + } + ++ g_free (text); ++ ++ return TRUE; ++ + } else if (status == G_IO_STATUS_AGAIN) { + char buf[1]; + +@@ -371,12 +376,13 @@ netinfo_io_text_buffer_dialog (GIOChanne + } + g_string_append_c (netinfo->command_output, buf[0]); + } ++ ++ g_free (text); ++ return TRUE; + } else if (status == G_IO_STATUS_EOF) { + } + + g_free (text); +- +- return TRUE; + } + + /* The condition is not G_IO_HUP | G_IO_ERR | G_IO_NVAL, so |