Skip to content

Commit

Permalink
Fix incorrect delimator ";" used to separate proj_info().searchpath
Browse files Browse the repository at this point in the history
entries on non-windows platforms, should be ":"
  • Loading branch information
nyalldawson committed Jun 2, 2019
1 parent ee34d06 commit 32d66ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/4D_api.cpp
Expand Up @@ -1369,7 +1369,7 @@ static char *path_append (char *buf, const char *app, size_t *buf_size) {

/* Only append a semicolon if something's already there */
if (0 != buflen)
strcat (buf, ";");
strcat (buf, delim);
strcat (buf, app);
return buf;
}
Expand Down
3 changes: 2 additions & 1 deletion src/proj.h
Expand Up @@ -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;
};
Expand Down

0 comments on commit 32d66ea

Please sign in to comment.