tyls - fix warnings about small buffer for snprintf

this extends the buffer to avoid any truncation - ever.

@fix
pull/4/head
Carsten Haitzler 3 months ago
parent cc547196a8
commit afb6d608f0
  1. 8
      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;

Loading…
Cancel
Save