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

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Oct 12 14:47:08 PDT 2019


commit 059def3b35bf38c5952796f596f1c5b582a9faf6
Author: Sascha Wildner <saw at online.de>
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
    https://sourceware.org/ml/libc-alpha/2017-11/msg00375.html

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/059def3b35bf38c5952796f596f1c5b582a9faf6


-- 
DragonFly BSD source repository



More information about the Commits mailing list