dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / ChangeDir.c
index a5c5edb48f728eabcc9d1e823cacbbe29ddd50b8..e30c4f18f504ab78b0c3c869e3944d8c2279a8cd 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * 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
  */
 #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";
 
@@ -786,7 +789,7 @@ TryToChangeDir(
 
        XtFree(title);
        XtFree(msg);
-       return;
+       return False;
      }
      else
      {