Browse Source

Lets get those sizes right

Jaywalker 6 years ago
parent
commit
930007ca22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apt-pkg/contrib/fileutl.cc

+ 1 - 1
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;