lib: utils/fdt: Replace strcmp with strncmp
authorDaniel Schaefer <daniel.schaefer@hpe.com>
Wed, 19 May 2021 07:54:10 +0000 (15:54 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 19 May 2021 12:05:38 +0000 (17:35 +0530)
commitfe92347b9f91c147b314065cc3c2c2b196c55b34
tree2b1096b71555b1a4289ffbccd98b639f01b05af3
parentee7c2b27ea8d875db8d7d39116432d9958267415
lib: utils/fdt: Replace strcmp with strncmp

Use strncmp() instead of strcmp() in __fixup_find_domain_offset()
so that it compiles fine when linking with external firmware (such
as EDK2).

Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Abner Chang <abner.chang@hpe.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/utils/fdt/fdt_domain.c