Explorar o código

(print_header): Change sizes of uform and gform from 11 to
UINTMAX_STRSIZE_BOUND.

Paul Eggert %!s(int64=26) %!d(string=hai) anos
pai
achega
69e400d4e0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/list.c

+ 2 - 1
src/list.c

@@ -757,7 +757,8 @@ print_header (void)
 {
   char modes[11];
   char *timestamp;
-  char uform[11], gform[11];	/* these hold formatted ints */
+  /* These hold formatted ints.  */
+  char uform[UINTMAX_STRSIZE_BOUND], gform[UINTMAX_STRSIZE_BOUND];
   char *user, *group;
   char size[2 * UINTMAX_STRSIZE_BOUND];
   				/* holds formatted size or major,minor */