From 01eeac6b0914b9ecc5945bfcb209bbae0d742f69 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Fri, 31 Dec 2021 01:05:51 -0800
Subject: [PROPOSED] =?UTF-8?q?zic:=20omit=20parens=20that=20the=20C=20stan?=
 =?UTF-8?q?dard=20doesn=E2=80=99t=20allow?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem and fix reported by Arthur Williams in:
https://mm.icann.org/pipermail/tz/2021-December/031144.html
* zic.c (random_dirent): Don’t parenthensize string literal
used to initialize a char array.
---
 zic.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/zic.c b/zic.c
index 1ab636b..2d1a187 100644
--- a/zic.c
+++ b/zic.c
@@ -990,9 +990,10 @@ random_dirent(char const **name, char **namealloc)
   char const *src = *name;
   char *dst = *namealloc;
   static char const prefix[] = ".zic";
-  static char const alphabet[] = ("abcdefghijklmnopqrstuvwxyz"
-				  "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-				  "0123456789");
+  static char const alphabet[] =
+    "abcdefghijklmnopqrstuvwxyz"
+    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+    "0123456789";
   enum { prefixlen = sizeof prefix - 1, alphabetlen = sizeof alphabet - 1 };
   int suffixlen = 6;
   char const *lastslash = strrchr(src, '/');
-- 
2.32.0

