From d0def19145d582ffe1131c994e1a767f0921320a Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Mon, 23 Apr 2018 10:28:19 +0200 Subject: [PATCH] Cygwin, support Windows-style parameter paths, typo (#512) Correct a readability-redundant-string-cstr typo detected by clang --- encfs/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encfs/main.cpp b/encfs/main.cpp index 6e732ea..71dfd71 100644 --- a/encfs/main.cpp +++ b/encfs/main.cpp @@ -484,7 +484,7 @@ static bool processArgs(int argc, char *argv[], // rest of the code. out->opts->rootDir = slashTerminate(argv[optind++]); out->opts->unmountPoint = string(argv[optind++]); - out->opts->mountPoint = slashTerminate(out->opts->unmountPoint.c_str()); + out->opts->mountPoint = slashTerminate(out->opts->unmountPoint); } else { // no mount point specified cerr << _("Missing one or more arguments, aborting.") << endl;