]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: 64 %-expansion keys ought to be enough for anybody; ok
authordjm@openbsd.org <djm@openbsd.org>
Thu, 12 Oct 2023 03:36:32 +0000 (03:36 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 12 Oct 2023 03:37:52 +0000 (14:37 +1100)
dtucker (we just hit the previous limit in some cases)

OpenBSD-Commit-ID: 84070f8001ec22ff5d669f836b62f206e08c5787

misc.c

diff --git a/misc.c b/misc.c
index 662b7c67064b9e7876e346b84b83b4be58d8a647..3db2e4d0b01ca55b69bf0f63680d31c001677138 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.188 2023/10/11 22:42:26 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.189 2023/10/12 03:36:32 djm Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2005-2020 Damien Miller.  All rights reserved.
@@ -1249,7 +1249,7 @@ static char *
 vdollar_percent_expand(int *parseerror, int dollar, int percent,
     const char *string, va_list ap)
 {
-#define EXPAND_MAX_KEYS        16
+#define EXPAND_MAX_KEYS        64
        u_int num_keys = 0, i;
        struct {
                const char *key;