tools: rockchip: boot/trust_merge: fix '--replace" missing append new path

Change-Id: Icddfb2ce9c7ba6f4b4e558eb5833ba79d0e7b976
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-04-11 11:56:22 +08:00
parent 2bbbd780f8
commit 45c2a034cd
2 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,7 @@ static inline void fixPath(char *path)
strcpy(tmp, end);
/* Terminate, so path can be dest for strcat() */
*start = '\0';
strcat(path, gNewPath);
strcat(path, tmp);
}
}

View File

@ -102,6 +102,7 @@ static inline void fixPath(char *path)
strcpy(tmp, end);
/* Terminate, so path can be dest for strcat() */
*start = '\0';
strcat(path, gNewPath);
strcat(path, tmp);
}
}