summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-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;