osx BUGFIX incorrect macro name, use PATH_MAX instead of old MAXPATHLEN
diff --git a/src/common.c b/src/common.c
index d50c6c3..dc96310 100644
--- a/src/common.c
+++ b/src/common.c
@@ -149,16 +149,12 @@
char *
get_current_dir_name(void)
{
-#ifdef __APPLE__
- char tmp[MAXPATHLEN];
-#else
char tmp[PATH_MAX];
-#endif
char *retval;
if (getcwd(tmp, sizeof(tmp))) {
retval = strdup(tmp);
- LY_CHECK_ERR_RETURN(!retval, LOGMEM(NULL), NULL);
+ LY_CHECK_ERR_RET(!retval, LOGMEM(NULL), NULL);
return retval;
}
return NULL;