diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index aa608802edc3..d83b4bcee60b 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -708,7 +708,7 @@ void SbRtl_Exp(StarBASIC *, SbxArray & rPar, bool) void SbRtl_FileLen(StarBASIC *, SbxArray & rPar, bool) { - if (rPar.Count() < 2) + if (rPar.Count() != 2) { return StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT ); }