diff --git a/src/FuncRequest.cpp b/src/FuncRequest.cpp index d37fd924a3..1d98ca1ea0 100644 --- a/src/FuncRequest.cpp +++ b/src/FuncRequest.cpp @@ -74,9 +74,9 @@ namespace { // Extracts arguments from str into args. Arguments are delimted by // whitespace or by double quotes. -// We extract at most max + 1 arguments, treating args[max] as +// We extract at most max + 1 arguments, treating args[max] as // continuing to eol. -void splitArg(vector & args, string const & str, +void splitArg(vector & args, string const & str, unsigned int max = UINT_MAX) { istringstream is(str); @@ -86,7 +86,7 @@ void splitArg(vector & args, string const & str, getline(is, s); args.push_back(trim(s)); return; - } + } char c; string s;