aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2000-08-01 23:04:23 +0800
committerroger <roger@FreeBSD.org>2000-08-01 23:04:23 +0800
commitc1da11609c80734d67fc8c5ff97073f736a99d34 (patch)
tree09158775ab5ef04d711a2a4f5adb185991330b76
parentd16386b420a748bd01db06522e1c0e4ee6057c00 (diff)
downloadfreebsd-ports-gnome-c1da11609c80734d67fc8c5ff97073f736a99d34.tar.gz
freebsd-ports-gnome-c1da11609c80734d67fc8c5ff97073f736a99d34.tar.zst
freebsd-ports-gnome-c1da11609c80734d67fc8c5ff97073f736a99d34.zip
Fix problem with alevt expecting malloced memory to be zeroed.
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
-rw-r--r--misc/alevt/files/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/alevt/files/patch-ab b/misc/alevt/files/patch-ab
new file mode 100644
index 000000000000..9ce44f126221
--- /dev/null
+++ b/misc/alevt/files/patch-ab
@@ -0,0 +1,13 @@
+*** xio.c.orig Thu Oct 7 23:24:38 1999
+--- xio.c Tue Aug 1 15:57:33 2000
+*************** xio_open_dpy(char *dpy, int argc, char *
+*** 170,175 ****
+--- 170,177 ----
+ if (not(xio = malloc(sizeof(*xio))))
+ goto fail1;
+
++ bzero(xio, sizeof *xio);
++
+ if (not(xio->dpy = XOpenDisplay(dpy)))
+ goto fail2;
+