diff --git a/src/commands/CmdTimesheet.cpp b/src/commands/CmdTimesheet.cpp index fa0e49b73..3dcd9e0a5 100644 --- a/src/commands/CmdTimesheet.cpp +++ b/src/commands/CmdTimesheet.cpp @@ -81,7 +81,7 @@ int CmdTimesheet::execute (std::string& output) int quantity = 1; std::vector words = context.cli2.getWords (); if (words.size () == 1) - quantity = std::stoi (words[0]); + quantity = strtol (words[0].c_str (), NULL, 10);; std::stringstream out; for (int week = 0; week < quantity; ++week)