summaryrefslogtreecommitdiffstats
path: root/lib/libedit
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-01-16 16:48:51 +0000
committerderaadt <deraadt@openbsd.org>2015-01-16 16:48:51 +0000
commitaea60bee5e9bad0aab62f480f19c2fb34c068de4 (patch)
tree1e7befbc10e28796528939427d4fdbd94b60d9af /lib/libedit
parentMore evil bootstrap code. #ifndef ALIGNBYTES #define ALIGNBYTES 3. (diff)
downloadwireguard-openbsd-aea60bee5e9bad0aab62f480f19c2fb34c068de4.tar.xz
wireguard-openbsd-aea60bee5e9bad0aab62f480f19c2fb34c068de4.zip
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/el.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libedit/el.c b/lib/libedit/el.c
index bdbbd80a588..8721f4944c2 100644
--- a/lib/libedit/el.c
+++ b/lib/libedit/el.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: el.c,v 1.19 2014/10/17 06:07:50 deraadt Exp $ */
+/* $OpenBSD: el.c,v 1.20 2015/01/16 16:48:51 deraadt Exp $ */
/* $NetBSD: el.c,v 1.61 2011/01/27 23:11:40 christos Exp $ */
/*-
@@ -39,12 +39,12 @@
* el.c: EditLine interface functions
*/
#include <sys/types.h>
-#include <sys/param.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <locale.h>
+#include <limits.h>
#include <langinfo.h>
#include "el.h"
@@ -501,7 +501,7 @@ el_source(EditLine *el, const char *fname)
size_t len;
char *ptr, *lptr = NULL;
#ifdef HAVE_ISSETUGID
- char path[MAXPATHLEN];
+ char path[PATH_MAX];
#endif
const Char *dptr;