diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-08-14 17:59:19 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-08-14 17:59:19 +0800 |
commit | 3de9eed7e7ace3896b282a0de7b493e7123dd04c (patch) | |
tree | 2fbcfd294f629928a1fa3642f399bf4e399d9d1a /net/gnome-nettool/files/patch-src_nettool.c | |
parent | 54bdc451257345fc952c09368cd5ebd45a57f88d (diff) | |
download | marcuscom-ports-3de9eed7e7ace3896b282a0de7b493e7123dd04c.tar.gz marcuscom-ports-3de9eed7e7ace3896b282a0de7b493e7123dd04c.tar.zst marcuscom-ports-3de9eed7e7ace3896b282a0de7b493e7123dd04c.zip |
Update to 2.31.6.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14395 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/gnome-nettool/files/patch-src_nettool.c')
-rw-r--r-- | net/gnome-nettool/files/patch-src_nettool.c | 49 |
1 files changed, 49 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..40e454467 --- /dev/null +++ b/net/gnome-nettool/files/patch-src_nettool.c @@ -0,0 +1,49 @@ +--- src/nettool.c.orig 2009-06-18 13:51:14.000000000 -0400 ++++ src/nettool.c 2009-07-19 16:05:59.000000000 -0400 +@@ -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> +@@ -374,6 +375,10 @@ netinfo_io_text_buffer_dialog (GIOChanne + len, NULL); + } + ++ g_free (text); ++ ++ return TRUE; ++ + } else if (status == G_IO_STATUS_AGAIN) { + char buf[1]; + +@@ -385,6 +390,8 @@ 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) { + + } else if (status == G_IO_STATUS_ERROR) { +@@ -402,15 +409,15 @@ netinfo_io_text_buffer_dialog (GIOChanne + + } else { + g_warning ("Error: %s\n", err->message); +- g_free (text); + g_free (err); + } + ++ g_free (text); ++ return TRUE; ++ + } + + g_free (text); +- +- return TRUE; + } + + /* The condition is not G_IO_HUP | G_IO_ERR | G_IO_NVAL, so |