]> git.lyx.org Git - lyx.git/blobdiff - src/support/chdir.C
fix typo that put too many include paths for most people
[lyx.git] / src / support / chdir.C
index 0ce2df4942a7dea0dc02923bcdbf8cd7d9c6b077..1f630a465d05763b7c374f88a3788714b2e864c4 100644 (file)
@@ -4,11 +4,11 @@
 
 #include "support/lyxlib.h"
 
-int lyx::chdir(char const * name)
+int lyx::chdir(string const & name)
 {
 #ifndef __EMX__
-       return ::chdir(name);
+       return ::chdir(name.c_str());
 #else
-       return ::_chdir2(name);
+       return ::_chdir2(name.c_str());
 #endif
 }