diff options
Autocommit at 14.06.2022 @ 12:49
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | src/UserInterface/UserInterface.cpp | 4 |
diff --git a/src/UserInterface/UserInterface.cpp b/src/UserInterface/UserInterface.cpp index 315b7e4..99b1d2f 100644 --- a/src/UserInterface/UserInterface.cpp +++ b/src/UserInterface/UserInterface.cpp @@ -91,7 +91,7 @@ void UserInterface::com_edit(const char* params) { return; } - unsigned row = atoi(++params); + unsigned row = atoi(++params) - 1; while (*params != 'C') { if (*params == '\0') { printLine("Error: End of line reached. Expected row number."); @@ -104,7 +104,7 @@ void UserInterface::com_edit(const char* params) { params++; } - unsigned col = atoi(++params); + unsigned col = atoi(++params) - 1; while (*params != ' ') { if (*params == '\0') { printLine("Error: End of line reached. Expected columns number."); |
