summaryrefslogtreecommitdiffstats
path: root/lib/libedit/keymacro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-04-11 19:54:53 +0000
committerschwarze <schwarze@openbsd.org>2016-04-11 19:54:53 +0000
commit5c93237dc61741a77e4aedea71fcbacffe8f97ad (patch)
treebc0e95ee0e85ecbc603cd014b3d6702559a8323f /lib/libedit/keymacro.c
parent- In isin(), quote $_b to ensure it's treated as string not as pattern. (diff)
downloadwireguard-openbsd-5c93237dc61741a77e4aedea71fcbacffe8f97ad.tar.xz
wireguard-openbsd-5c93237dc61741a77e4aedea71fcbacffe8f97ad.zip
Move wrapper macros to the two files actually needing them:
FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -> history.c Strchr, tok_strdup -> tokenizer.c FUN, TYPE, STR -> both of these files OK martijn@ Also proofread by Christian Heckendorf <mbie at ulmus dot me> who reported some whitespace issues in parse.c.
Diffstat (limited to 'lib/libedit/keymacro.c')
-rw-r--r--lib/libedit/keymacro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libedit/keymacro.c b/lib/libedit/keymacro.c
index 16a0c63e9b1..ed1dd6acbdb 100644
--- a/lib/libedit/keymacro.c
+++ b/lib/libedit/keymacro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keymacro.c,v 1.10 2016/04/09 20:15:26 schwarze Exp $ */
+/* $OpenBSD: keymacro.c,v 1.11 2016/04/11 19:54:54 schwarze Exp $ */
/* $NetBSD: keymacro.c,v 1.16 2016/04/09 18:43:17 christos Exp $ */
/*-
@@ -351,7 +351,7 @@ node__try(EditLine *el, keymacro_node_t *ptr, const Char *str,
break;
case XK_STR:
case XK_EXE:
- if ((ptr->val.str = Strdup(val->str)) == NULL)
+ if ((ptr->val.str = wcsdup(val->str)) == NULL)
return -1;
break;
default: