diff options
author | Jim Meyering <meyering@redhat.com> | 2010-06-10 17:49:30 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-06-10 17:53:46 +0200 |
commit | ea615bf8cdc59c73288577fb135d6f2ead500ebe (patch) | |
tree | f27fe8f7b45a76e007099ab688c879dfdf7164d1 /src | |
parent | 9e7edd8467232b5c6b714d588d0e1528cc54151b (diff) | |
download | coreutils-ea615bf8cdc59c73288577fb135d6f2ead500ebe.tar.xz |
ls: avoid just-introduced buffer overrun
* src/ls.c (gobble_file): Revert part of my preceding change,
to avoid clobbering stack.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2986,7 +2986,7 @@ gobble_file (char const *name, enum filetype type, ino_t inode, if (format == long_format) { - char b[INT_BUFSIZE_BOUND (f->stat.st_nlink)]; + char b[INT_BUFSIZE_BOUND (uintmax_t)]; int b_len = strlen (umaxtostr (f->stat.st_nlink, b)); if (nlink_width < b_len) nlink_width = b_len; |