mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcalc: remove MAX_PATH, use standard PATH_MAX
This commit is contained in:
parent
ce471d7068
commit
2363b97d60
2 changed files with 1 additions and 2 deletions
|
@ -4138,7 +4138,7 @@ save_state(Widget widget, XtPointer client_data, XtPointer call_data)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
XtFree( (char *)full_path);
|
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);
|
sprintf( full_path, "%s/%s", dt_path, DTCALC_CLASS_NAME);
|
||||||
sessionFileName = full_path;
|
sessionFileName = full_path;
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,4 +177,3 @@ XVars X ;
|
||||||
#define HOME_RESTORE 1
|
#define HOME_RESTORE 1
|
||||||
#define CURRENT_RESTORE 2
|
#define CURRENT_RESTORE 2
|
||||||
|
|
||||||
#define MAX_PATH PATH_MAX
|
|
||||||
|
|
Loading…
Reference in a new issue