Increase max depth for termcaps
authorafresh1 <afresh1@openbsd.org>
Wed, 18 Oct 2023 01:49:26 +0000 (01:49 +0000)
committerafresh1 <afresh1@openbsd.org>
Wed, 18 Oct 2023 01:49:26 +0000 (01:49 +0000)
With the update to ncurses 6.4-20230826 /etc/termcap now needs at
least a 36 deep search.  Instead, we'll just bump to 64.  It seems
32 has been enough since perl 5.001 in 1995, so hopefully this buys
us at least another 28 years.

"please commit that" deraadt@

gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm

index 12d8299..4ad9dd2 100644 (file)
@@ -280,7 +280,7 @@ sub Tgetent
 
     $first = 0;    # first entry (keeps term name)
 
-    $max = 32;     # max :tc=...:'s
+    $max = 64;     # max :tc=...:'s
 
     if ($entry)
     {