From 930007ca221e1578afa235cb7e42345f39f028db Mon Sep 17 00:00:00 2001 From: Jaywalker Date: Wed, 7 Feb 2018 17:01:37 -0600 Subject: Lets get those sizes right --- apt-pkg/contrib/fileutl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3