summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJaywalker <jwilliams@nsllc.com>2018-02-07 17:01:37 -0600
committerJaywalker <jwilliams@nsllc.com>2018-02-07 17:01:37 -0600
commit930007ca221e1578afa235cb7e42345f39f028db (patch)
tree95c7780bbe46258e01c6a1921374deffd2c53d3d /apt-pkg
parentc6faf6faeda837fa421337a69dba7904bd3d0961 (diff)
Lets get those sizes right
Diffstat (limited to 'apt-pkg')
-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 25deec083..f3c7b6d3b 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -243,7 +243,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;