From 478cc1c90fd35b7eda551aeb3245245c7c681e6e Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Wed, 28 Dec 2011 23:35:42 +0000 Subject: [PATCH] wrap PUSHARG macro for correctness. Report by Pedro Rocha git-svn-id: http://encfs.googlecode.com/svn/trunk@72 db9cf616-1c43-0410-9cb8-a902689de0d6 --- encfs/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encfs/main.cpp b/encfs/main.cpp index a719253..df148c6 100644 --- a/encfs/main.cpp +++ b/encfs/main.cpp @@ -170,9 +170,9 @@ void FuseUsage() fuse_main( argc, const_cast(argv), (fuse_operations*)NULL, NULL); } -#define PUSHARG(ARG) \ +#define PUSHARG(ARG) do { \ rAssert(out->fuseArgc < MaxFuseArgs); \ -out->fuseArgv[out->fuseArgc++] = ARG +out->fuseArgv[out->fuseArgc++] = (ARG); } while(0) static string slashTerminate( const string &src )