diff --git a/src/display.c b/src/display.c index dcb3b83..3d14701 100644 --- a/src/display.c +++ b/src/display.c @@ -329,6 +329,7 @@ void size_to_string( const char SIZE_CHARS[ 6 ] = { 'B', 'k', 'M', 'G', 'T', 'P' }; char size_quantifier = '\0'; double size_format = ( float )entry->stats.st_size; + if ( entry->stats.st_mode & S_IFREG || entry->stats.st_mode & S_IFCHR ) { @@ -368,7 +369,7 @@ void size_to_string( snprintf( &file_size[ 0 ], length, - " " + " -" ); } }