summaryrefslogtreecommitdiff
path: root/net-p2p/napshare/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/napshare/files/patch-ab')
-rw-r--r--net-p2p/napshare/files/patch-ab31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-p2p/napshare/files/patch-ab b/net-p2p/napshare/files/patch-ab
new file mode 100644
index 000000000000..5cecf868df40
--- /dev/null
+++ b/net-p2p/napshare/files/patch-ab
@@ -0,0 +1,31 @@
+--- src/downloads.c.orig Sat May 26 23:20:32 2001
++++ src/downloads.c Wed Dec 12 16:27:46 2001
+@@ -241,7 +241,8 @@
+
+ d->last_update = time((time_t *) NULL);
+
+- d->remove_msg = reason;
++ if (reason != NULL)
++ d->remove_msg = g_strdup(reason);
+
+ if (IS_DOWNLOAD_VISIBLE(d)) gui_update_download(d, TRUE);
+
+@@ -521,6 +522,7 @@
+
+ g_free(d->path);
+ g_free(d->file_name);
++ g_free(d->remove_msg);
+ g_free(d);
+ }
+
+--- src/gnutella.h.orig Wed Dec 12 16:43:41 2001
++++ src/gnutella.h Wed Dec 12 16:43:53 2001
+@@ -274,7 +274,7 @@
+ guint32 timeout_delay;
+ guint restart_timer_id;
+
+- const gchar *remove_msg;
++ gchar *remove_msg;
+
+ guint32 ip;
+ guint16 port;