forked from enlightenment/terminology
tyls - fix warnings about small buffer for snprintf
this extends the buffer to avoid any truncation - ever. @fix
This commit is contained in:
parent
cc547196a8
commit
afb6d608f0
|
@ -640,7 +640,7 @@ list_dir(const char *dir, Tyls_Options *options)
|
||||||
{
|
{
|
||||||
for (c = 0; c < cols; c++)
|
for (c = 0; c < cols; c++)
|
||||||
{
|
{
|
||||||
char sz[6], szch = ' ';
|
char sz[32], szch = ' ';
|
||||||
long long size;
|
long long size;
|
||||||
|
|
||||||
s = names[(c * rows) + i];
|
s = names[(c * rows) + i];
|
||||||
|
@ -694,7 +694,7 @@ list_dir(const char *dir, Tyls_Options *options)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
for (c = 0; c < cols; c++)
|
for (c = 0; c < cols; c++)
|
||||||
{
|
{
|
||||||
char sz[6], szch = ' ';
|
char sz[32], szch = ' ';
|
||||||
long long size;
|
long long size;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
@ -790,7 +790,7 @@ flush_file(Tyls_Options *options)
|
||||||
{
|
{
|
||||||
for (c = 0; c < cols; c++)
|
for (c = 0; c < cols; c++)
|
||||||
{
|
{
|
||||||
char sz[6], szch = ' ';
|
char sz[32], szch = ' ';
|
||||||
long long size;
|
long long size;
|
||||||
|
|
||||||
s = names[(c * rows) + i];
|
s = names[(c * rows) + i];
|
||||||
|
@ -848,7 +848,7 @@ flush_file(Tyls_Options *options)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
for (c = 0; c < cols; c++)
|
for (c = 0; c < cols; c++)
|
||||||
{
|
{
|
||||||
char sz[6], szch = ' ';
|
char sz[32], szch = ' ';
|
||||||
long long size;
|
long long size;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue