diff options
| author | Peter Jones <pjones@redhat.com> | 2017-09-27 10:17:45 -0400 |
|---|---|---|
| committer | Peter Jones <pmjones@gmail.com> | 2018-03-12 16:21:43 -0400 |
| commit | 0518453845916b14c78c36997a4d4d1a10246475 (patch) | |
| tree | e58cdd02afe838f34ced6ddf59c70618445f5944 | |
| parent | 01b5d9c6b216991b3d31bb2fd281553dd221978e (diff) | |
| download | efi-boot-shim-0518453845916b14c78c36997a4d4d1a10246475.tar.gz efi-boot-shim-0518453845916b14c78c36997a4d4d1a10246475.zip | |
MokManager: check_der_suffix(): use StrnCat() on our suffix checker.
We know it's legit already because we computed the pointer from the end,
but covscan gets confused, and we have StrnCat, so we should just use it
anyway.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | MokManager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MokManager.c b/MokManager.c index 77e0c5bf..70fbbadd 100644 --- a/MokManager.c +++ b/MokManager.c @@ -1960,7 +1960,7 @@ static BOOLEAN check_der_suffix(CHAR16 * file_name) return FALSE; suffix[0] = '\0'; - StrCat(suffix, file_name + StrLen(file_name) - 4); + StrnCat(suffix, file_name + StrLen(file_name) - 4, 4); StrLwr(suffix); for (i = 0; der_suffix[i] != NULL; i++) { |
