diff options
| author | drhaynes <drhmbp@gmail.com> | 2016-01-26 15:02:23 +0000 |
|---|---|---|
| committer | drhaynes <drhmbp@gmail.com> | 2016-01-26 15:02:23 +0000 |
| commit | ccde1c831660735db6e4fd5a473f1a5dbe28a97f (patch) | |
| tree | 3412e237a7beaebae080afcb06612490613f1594 /src | |
| parent | 1ec3c21b2b3f953cf9a2b3e36c959ee732eac11d (diff) | |
| download | PROJ-ccde1c831660735db6e4fd5a473f1a5dbe28a97f.tar.gz PROJ-ccde1c831660735db6e4fd5a473f1a5dbe28a97f.zip | |
Use #define for max path length
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_gridlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c index a49c8d51..a54dbe6f 100644 --- a/src/pj_gridlist.c +++ b/src/pj_gridlist.c @@ -43,6 +43,7 @@ #endif /* _WIN32_WCE */ static PJ_GRIDINFO *grid_list = NULL; +#define PJ_MAX_PATH_LENGTH 1024 /************************************************************************/ /* pj_deallocate_grids() */ @@ -177,9 +178,8 @@ PJ_GRIDINFO **pj_gridlist_from_nadgrids( projCtx ctx, const char *nadgrids, for( s = nadgrids; *s != '\0'; ) { size_t end_char; - int required = 1; - const int max_path_length = 1024; - char name[max_path_length]; + int required = 1; + char name[PJ_MAX_PATH_LENGTH]; if( *s == '@' ) { |
