firmware-utils: mksercommfw: fix compiler warnings/errors
authorPetr Štetiar <ynezz@true.cz>
Sun, 21 Jul 2019 06:09:42 +0000 (08:09 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 20:07:23 +0000 (22:07 +0200)
commitf5e6d03e02e23bb8f5aea64b1905138bcc43d8c2
tree3a7e44b56d89241b2466d2b70f3d28b98239342d
parent89009c7f11d26e2324028f7ca59b6d1a23373d8c
firmware-utils: mksercommfw: fix compiler warnings/errors

mksercommfw.c:134:56: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 7 bytes from a string of the same length [-Werror=stringop-truncation]
string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 7 bytes from a string of the same length [-Werror=stringop-truncation]

Signed-off-by: Petr Štetiar <ynezz@true.cz>
tools/firmware-utils/src/mksercommfw.c