diff options
author | Jaywalker <jwilliams@nsllc.com> | 2018-02-07 17:01:37 -0600 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-26 15:12:15 -1000 |
commit | 326a2e8653835b12948472b8f26a53cc9e567fa6 (patch) | |
tree | b9addd3c81aeb19e7763caa7ae37029b195a2244 | |
parent | fa9a6237de0e04771985fb86d6945ab0025cf7f6 (diff) |
Lets get those sizes right
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 789de4211..f7c8107b4 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -249,7 +249,7 @@ static char *fixedCmd(const char *cmdStr){ uint8_t size = strlen(cmd) + 1; - char *args = cmdCpy + (size + 1); + char *args = cmdCpy + size; if ((strlen(cmdStr) - strlen(cmd)) == 0) args = NULL; |