summaryrefslogtreecommitdiff
path: root/mugglei.c
diff options
context:
space:
mode:
Diffstat (limited to 'mugglei.c')
-rw-r--r--mugglei.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mugglei.c b/mugglei.c
index 6aded67..2c34973 100644
--- a/mugglei.c
+++ b/mugglei.c
@@ -64,13 +64,8 @@ import() {
bool
path_within_tld() {
- char path[5000];
- if (!getcwd(path,4999)) {
- std::cout << "Path too long" << std::endl;
- exit (1);
- }
+ const char* path = mugglepath();
int tldlen = strlen(the_setup.ToplevelDir);
- strcat(path,"/");
int pathlen = strlen(path);
if (pathlen<tldlen)
return false;