dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / ChangeDir.c
index 95d285c0cd1bfc4a173060ec500e69c57ac3ff45..e30c4f18f504ab78b0c3c869e3944d8c2279a8cd 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $XConsortium: ChangeDir.c /main/7 1996/10/30 11:09:35 drk $ */
 /************************************<+>*************************************
  ****************************************************************************
 #include <Dt/Action.h>
 #include <Dt/Connect.h>
 #include <Dt/DtNlUtils.h>
+#include <Dt/SharedProcs.h>
 
 #include <Tt/tttk.h>
 
 #include <Xm/DragIcon.h>
 #include <Xm/DragC.h>
+#include <Xm/TextF.h>
+#include <Xm/XmPrivate.h> /* _XmStringUngenerate */
 #include <Dt/Dnd.h>
 
 #include "Encaps.h"
 #include "SharedMsgs.h"
 
 
-#define MAX_PATH 1024
+#define MAX_PATH PATH_MAX
 
 static char * CHANGEDIRECTORY = "ChangeDirectory";
 
@@ -764,7 +789,7 @@ TryToChangeDir(
 
        XtFree(title);
        XtFree(msg);
-       return;
+       return False;
      }
      else
      {