git: zic(8): Avoid -Wstringop-truncation warning.

Sascha Wildner swildner at
Sat Oct 12 14:47:08 PDT 2019

commit 059def3b35bf38c5952796f596f1c5b582a9faf6
Author: Sascha Wildner <saw at>
Date:   Sat Oct 12 23:46:50 2019 +0200

    zic(8): Avoid -Wstringop-truncation warning.
    The tzh.tzh_magic holds 4 characters, while TZ_MAGIC == "TZif".
    So use memcpy() to avoid the warning.
    Originally-submitted-by: zrj
    Also committed upstream independently, see

Summary of changes:
 usr.sbin/zic/zic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list