aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c
index 24b9300599..d2b78fd13e 100644
--- a/epan/filesystem.c
+++ b/epan/filesystem.c
@@ -342,7 +342,7 @@ init_progfile_dir(const char *arg0
strerror(errno));
}
curdir = g_malloc(path_max);
- if (getcwd(curdir, sizeof curdir) == NULL) {
+ if (getcwd(curdir, path_max) == NULL) {
/*
* It failed - give up, and just stick
* with DATAFILE_DIR.