Skip to content

Commit aff3250

Browse files
committed
4D_api: Use pg_get_version()
1 parent 6320f57 commit aff3250

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/4D_api.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,6 @@ static char *path_append(char *buf, const char *app, size_t *buf_size) {
25462546
}
25472547

25482548
static const char *empty = {""};
2549-
static char version[64] = {""};
25502549
static PJ_INFO info = {0, 0, 0, nullptr, nullptr, nullptr, nullptr, 0};
25512550

25522551
/*****************************************************************************/
@@ -2565,12 +2564,7 @@ PJ_INFO proj_info(void) {
25652564
info.minor = PROJ_VERSION_MINOR;
25662565
info.patch = PROJ_VERSION_PATCH;
25672566

2568-
/* A normal version string is xx.yy.zz which is 8 characters
2569-
long and there is room for 64 bytes in the version string. */
2570-
snprintf(version, sizeof(version), "%d.%d.%d", info.major, info.minor,
2571-
info.patch);
2572-
2573-
info.version = version;
2567+
info.version = pj_get_version();
25742568
info.release = pj_get_release();
25752569

25762570
/* build search path string */

0 commit comments

Comments
 (0)