summaryrefslogtreecommitdiff
path: root/net/userppp/patches
diff options
context:
space:
mode:
authorad <ad@pkgsrc.org>2001-03-02 19:15:17 +0000
committerad <ad@pkgsrc.org>2001-03-02 19:15:17 +0000
commitb2e422b4232a9c99ae9ce822e94e816bed534bdf (patch)
tree01a376892ada214645313ae0889468c0e5695845 /net/userppp/patches
parentbc4caa6067fbcca7599ced08bf94e525c82295ae (diff)
downloadpkgsrc-b2e422b4232a9c99ae9ce822e94e816bed534bdf.tar.gz
pkg/12294: pppctl dumps core. Patch from Bruno Achauer <bruno@exet-ag.de>.
Diffstat (limited to 'net/userppp/patches')
-rw-r--r--net/userppp/patches/patch-aj30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/userppp/patches/patch-aj b/net/userppp/patches/patch-aj
new file mode 100644
index 00000000000..aed2c922fa6
--- /dev/null
+++ b/net/userppp/patches/patch-aj
@@ -0,0 +1,30 @@
+$NetBSD: patch-aj,v 1.1 2001/03/02 19:15:17 ad Exp $
+
+--- pppctl/pppctl.c.orig Fri Mar 2 19:03:42 2001
++++ pppctl/pppctl.c Fri Mar 2 19:04:16 2001
+@@ -389,6 +389,7 @@
+ History *hist;
+ const char *l, *env;
+ int size;
++ HistEvent hev = { 0, "" };
+
+ hist = history_init();
+ if ((env = getenv("EL_SIZE"))) {
+@@ -398,7 +399,7 @@
+ } else
+ size = 20;
+ #ifdef __NetBSD__
+- history(hist, NULL, H_SETSIZE, size);
++ history(hist, &hev, H_SETSIZE, size);
+ edit = el_init("pppctl", stdin, stdout, stderr);
+ #else
+ history(hist, H_EVENT, size);
+@@ -417,7 +418,7 @@
+ while ((l = smartgets(edit, &len, fd))) {
+ if (len > 1)
+ #ifdef __NetBSD__
+- history(hist, NULL, H_ENTER, l);
++ history(hist, &hev, H_ENTER, l);
+ #else
+ history(hist, H_ENTER, l);
+ #endif