From 64535e61c3f45d59bf8b6ba45d674c1994bc151f Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Thu, 5 Sep 2002 09:37:03 +0000 Subject: fixes --- cpp/src/IcePatch/Client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/IcePatch/Client.cpp') diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index 1fe50d674e3..bbf34ee8743 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -221,8 +221,13 @@ IcePatch::Client::run(int argc, char* argv[]) _remove = properties->getPropertyAsInt("IcePatch.RemoveOrphaned") > 0; if(_remove) { +#ifdef _WIN32 + char cwd[_MAX_PATH]; + _getcwd(cwd, _MAX_PATH); +#else char cwd[PATH_MAX]; getcwd(cwd, PATH_MAX); +#endif cout << "WARNING: All orphaned files in `" << cwd << "' will be removed." << endl; cout << "Do you want to proceed? (yes/no)" << endl; string answer; -- cgit v1.2.3