diff options
author | roger <roger@FreeBSD.org> | 2000-08-01 15:04:23 +0000 |
---|---|---|
committer | roger <roger@FreeBSD.org> | 2000-08-01 15:04:23 +0000 |
commit | c1da11609c80734d67fc8c5ff97073f736a99d34 (patch) | |
tree | 09158775ab5ef04d711a2a4f5adb185991330b76 /misc/alevt | |
parent | d16386b420a748bd01db06522e1c0e4ee6057c00 (diff) | |
download | FreeBSD-ports-c1da11609c80734d67fc8c5ff97073f736a99d34.zip FreeBSD-ports-c1da11609c80734d67fc8c5ff97073f736a99d34.tar.gz |
Fix problem with alevt expecting malloced memory to be zeroed.
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Diffstat (limited to 'misc/alevt')
-rw-r--r-- | misc/alevt/files/patch-ab | 13 |
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 0000000..9ce44f1 --- /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; + |