From 3f6d3964bfcd2cdd83a0a7123981cf87d19ae105 Mon Sep 17 00:00:00 2001 From: drhaynes Date: Tue, 26 Jan 2016 11:09:39 +0000 Subject: 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. --- src/pj_gridlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 == '@' ) { -- cgit v1.2.3