diff options
| author | drhaynes <drhmbp@gmail.com> | 2016-01-26 11:09:39 +0000 |
|---|---|---|
| committer | drhaynes <drhmbp@gmail.com> | 2016-01-26 11:09:39 +0000 |
| commit | 3f6d3964bfcd2cdd83a0a7123981cf87d19ae105 (patch) | |
| tree | 74c1a6732ff02cc0829edf903c3e70c41722cf73 /src | |
| parent | 0f500a5950b6bbd2c05f61c12158f934f56b8d6e (diff) | |
| download | PROJ-3f6d3964bfcd2cdd83a0a7123981cf87d19ae105.tar.gz PROJ-3f6d3964bfcd2cdd83a0a7123981cf87d19ae105.zip | |
Increase maximum path size for grid shift loading
On systems with long paths (e.g. iOS, which uses UUIDs for bundle
directories), the existing maximum path length of 128 resulted in path
truncation, and caused the grid shift file loading to fail.
This change increases the buffer size for the path to 1024 chars,
enabling the nadgrids file to be loaded on such systems.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_gridlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c index 0cfab76e..bc005d32 100644 --- a/src/pj_gridlist.c +++ b/src/pj_gridlist.c @@ -178,7 +178,8 @@ PJ_GRIDINFO **pj_gridlist_from_nadgrids( projCtx ctx, const char *nadgrids, { size_t end_char; int required = 1; - char name[128]; + int max_path_length = 1024; + char name[max_path_length]; if( *s == '@' ) { |
