dtcalc: remove MAX_PATH, use standard PATH_MAX
authorJon Trulson <jon@radscan.com>
Mon, 2 Apr 2018 00:33:00 +0000 (18:33 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 2 Apr 2018 00:33:00 +0000 (18:33 -0600)
cde/programs/dtcalc/motif.c
cde/programs/dtcalc/motif.h

index e828c6651750ba8a20b7cf5aba79fcc26c0a2e1e..60a43006bbdf1c5ddbd8126d4d50c5149838ae9c 100644 (file)
@@ -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;
    }
index c242bdf9a78c57129fff2bb7e521b76ae46fcd75..0d2005acb46084787c2ad5f76536712c523ee0b9 100644 (file)
@@ -177,4 +177,3 @@ XVars X ;
 #define HOME_RESTORE    1
 #define CURRENT_RESTORE    2
 
-#define MAX_PATH PATH_MAX