[Libreoffice-commits] online.git: loolwsd/LOOLTool.cpp

Michael Meeks michael.meeks at collabora.com
Fri Apr 15 12:56:17 UTC 2016


 loolwsd/LOOLTool.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b5e37448a8e3a8af54b9fd1f602542b84a0fd1a5
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Fri Apr 15 13:55:34 2016 +0100

    looltool: get argument array copyies right.

diff --git a/loolwsd/LOOLTool.cpp b/loolwsd/LOOLTool.cpp
index e2d8b4f..ffde699 100644
--- a/loolwsd/LOOLTool.cpp
+++ b/loolwsd/LOOLTool.cpp
@@ -239,7 +239,7 @@ int Tool::main(const std::vector<std::string>& args)
         if (toCopy > 0)
         {
             std::vector< std::string > files( toCopy );
-            std::copy( args.begin() + offset, args.begin() + offset + chunk, files.begin() );
+            std::copy( args.begin() + offset, args.begin() + offset + toCopy, files.begin() );
             offset += toCopy;
             clients[i]->start(*(new Worker(*this, files)));
         }


More information about the Libreoffice-commits mailing list