summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaywalker <jwilliams@nsllc.com>2018-02-07 17:01:37 -0600
committerSam Bingner <sam@bingner.com>2019-12-26 15:12:15 -1000
commit326a2e8653835b12948472b8f26a53cc9e567fa6 (patch)
treeb9addd3c81aeb19e7763caa7ae37029b195a2244
parentfa9a6237de0e04771985fb86d6945ab0025cf7f6 (diff)
Lets get those sizes right
-rw-r--r--apt-pkg/contrib/fileutl.cc2
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;