From 2363b97d604422e903db63fd8c73dddcdf5b968c Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 1 Apr 2018 18:33:00 -0600 Subject: [PATCH] dtcalc: remove MAX_PATH, use standard PATH_MAX --- cde/programs/dtcalc/motif.c | 2 +- cde/programs/dtcalc/motif.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cde/programs/dtcalc/motif.c b/cde/programs/dtcalc/motif.c index e828c665..60a43006 100644 --- a/cde/programs/dtcalc/motif.c +++ b/cde/programs/dtcalc/motif.c @@ -4138,7 +4138,7 @@ save_state(Widget widget, XtPointer client_data, XtPointer call_data) else { XtFree( (char *)full_path); - full_path = (char *) XtMalloc (sizeof (char) * MAX_PATH); + full_path = (char *) XtMalloc (sizeof (char) * PATH_MAX); sprintf( full_path, "%s/%s", dt_path, DTCALC_CLASS_NAME); sessionFileName = full_path; } diff --git a/cde/programs/dtcalc/motif.h b/cde/programs/dtcalc/motif.h index c242bdf9..0d2005ac 100644 --- a/cde/programs/dtcalc/motif.h +++ b/cde/programs/dtcalc/motif.h @@ -177,4 +177,3 @@ XVars X ; #define HOME_RESTORE 1 #define CURRENT_RESTORE 2 -#define MAX_PATH PATH_MAX -- 2.25.1