aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-06-04 22:00:12 +0200
committerGitHub <noreply@github.com>2019-06-04 22:00:12 +0200
commit21ce6dd6b20f8d6eea8881d20952042218827cba (patch)
treeb5fafd9804a8a9bc19d0530609f9a6920c66d81d /src
parentc50ef876b7a526ce55634a090737d498f97620ad (diff)
parenta7a765199ea75cbc04b4473bca6afef2385a4a50 (diff)
downloadPROJ-21ce6dd6b20f8d6eea8881d20952042218827cba.tar.gz
PROJ-21ce6dd6b20f8d6eea8881d20952042218827cba.zip
Fix incorrect delimator ";" used to separate proj_info().searchpath entries (#1497)
Fix incorrect delimator ";" used to separate proj_info().searchpath entries
Diffstat (limited to 'src')
-rw-r--r--src/4D_api.cpp4
-rw-r--r--src/proj.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp
index 5d84e6c6..9f445d88 100644
--- a/src/4D_api.cpp
+++ b/src/4D_api.cpp
@@ -1367,9 +1367,9 @@ static char *path_append (char *buf, const char *app, size_t *buf_size) {
}
assert(buf);
- /* Only append a semicolon if something's already there */
+ /* Only append a delimiter if something's already there */
if (0 != buflen)
- strcat (buf, ";");
+ strcat (buf, delim);
strcat (buf, app);
return buf;
}
diff --git a/src/proj.h b/src/proj.h
index a39d3150..2edcdc27 100644
--- a/src/proj.h
+++ b/src/proj.h
@@ -277,7 +277,8 @@ struct PJ_INFO {
const char *version; /* Full version number */
const char *searchpath; /* Paths where init and grid files are */
/* looked for. Paths are separated by */
- /* semi-colons. */
+ /* semi-colons on Windows, and colons */
+ /* on non-Windows platforms. */
const char * const *paths;
size_t path_count;
};