[PATCH 2/3] lib: silence gcc 8 complains
Alex Hung
alex.hung at canonical.com
Wed Jul 25 05:56:11 UTC 2018
This is to fix gcc 8 complains of "directive output may be truncated
... [-Werror=format-truncation=]"
Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
src/lib/src/fwts_iasl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/src/fwts_iasl.c b/src/lib/src/fwts_iasl.c
index be8ccaa..48afd97 100644
--- a/src/lib/src/fwts_iasl.c
+++ b/src/lib/src/fwts_iasl.c
@@ -217,7 +217,7 @@ int fwts_iasl_disassemble_all_to_file(
const char *path)
{
int i, j, ret;
- char filename[PATH_MAX];
+ char filename[PATH_MAX + 18];
char pathname[PATH_MAX];
ret = fwts_iasl_init(fw);
--
2.7.4
More information about the fwts-devel
mailing list