aboutsummaryrefslogtreecommitdiff
path: root/src/open_lib.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-10-28 09:03:10 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-10-28 09:03:10 +0100
commit4330f9fa4391b4d39c52c972c75327ed2ba6ce33 (patch)
treed2718cc258d02faee018c96602f84c814cba5fce /src/open_lib.cpp
parente2d5b13f3442a8e88093a9d68e1be550194a4d77 (diff)
downloadPROJ-4330f9fa4391b4d39c52c972c75327ed2ba6ce33.tar.gz
PROJ-4330f9fa4391b4d39c52c972c75327ed2ba6ce33.zip
Various fixes/workarounds to make cppcheck 1.72 (Ubuntu 16.04) and HEAD/1.90dev happy (fixes #1648)
Diffstat (limited to 'src/open_lib.cpp')
-rw-r--r--src/open_lib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/open_lib.cpp b/src/open_lib.cpp
index 05e01db2..7fedb28b 100644
--- a/src/open_lib.cpp
+++ b/src/open_lib.cpp
@@ -245,6 +245,7 @@ pj_open_lib_ex(projCtx ctx, const char *name, const char *mode,
{
if( out_full_filename != nullptr && out_full_filename_size > 0 )
{
+ // cppcheck-suppress nullPointer
strncpy(out_full_filename, sysname, out_full_filename_size);
out_full_filename[out_full_filename_size-1] = '\0';
}