From afb6d608f0724e4d07137f2c88f1fab435f0ee67 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 18 May 2022 13:10:04 +0100 Subject: [PATCH] tyls - fix warnings about small buffer for snprintf this extends the buffer to avoid any truncation - ever. @fix --- src/bin/tyls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/tyls.c b/src/bin/tyls.c index e5fef605..ad30ad7f 100644 --- a/src/bin/tyls.c +++ b/src/bin/tyls.c @@ -640,7 +640,7 @@ list_dir(const char *dir, Tyls_Options *options) { for (c = 0; c < cols; c++) { - char sz[6], szch = ' '; + char sz[32], szch = ' '; long long size; s = names[(c * rows) + i]; @@ -694,7 +694,7 @@ list_dir(const char *dir, Tyls_Options *options) printf("\n"); for (c = 0; c < cols; c++) { - char sz[6], szch = ' '; + char sz[32], szch = ' '; long long size; int len; @@ -790,7 +790,7 @@ flush_file(Tyls_Options *options) { for (c = 0; c < cols; c++) { - char sz[6], szch = ' '; + char sz[32], szch = ' '; long long size; s = names[(c * rows) + i]; @@ -848,7 +848,7 @@ flush_file(Tyls_Options *options) printf("\n"); for (c = 0; c < cols; c++) { - char sz[6], szch = ' '; + char sz[32], szch = ' '; long long size; int len;