From 9e1420309c075ff1cc74514e39d0cf6da1e4e19c Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 6 Feb 2020 22:18:23 +0100 Subject: Travis: update CLang Static Analyzer to CLang 9 Enable optional checkers Fix two false positives --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 9c7b7b19..a25d1ccd 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -239,7 +239,7 @@ Expand key from buffer or (if not in buffer) from init file char initname[5]; int exists; - memcpy(initname, xkey, 4); + strncpy(initname, xkey, 4); initname[4] = 0; if( strncmp(xkey, "epsg:", 5) == 0 ) { -- cgit v1.2.3