diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-12-29 16:21:00 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-29 22:36:24 +0100 |
commit | 2d09f077e6c708d0c47b9c8d4c99dcec5268e94f (patch) | |
tree | 4bcd6c9fbd889fe7a35e59673c39f998e84b890a /libps | |
parent | 1e2936bb42b34a3123a614322bcc27b933394f39 (diff) | |
download | hurd-2d09f077e6c708d0c47b9c8d4c99dcec5268e94f.tar.gz hurd-2d09f077e6c708d0c47b9c8d4c99dcec5268e94f.tar.bz2 hurd-2d09f077e6c708d0c47b9c8d4c99dcec5268e94f.zip |
x86_64: use 21 bytes in libps since %z might require more characters.
This makes GCC happy.
Message-ID: <20231229212105.858759-6-flaviocruz@gmail.com>
Diffstat (limited to 'libps')
-rw-r--r-- | libps/spec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/spec.c b/libps/spec.c index dec57044..9f647034 100644 --- a/libps/spec.c +++ b/libps/spec.c @@ -492,7 +492,7 @@ error_t ps_emit_nice_size_t (struct proc_stat *ps, struct ps_fmt_field *field, struct ps_stream *stream) { - char buf[20]; + char buf[21]; size_t value = FG_PROC_STAT (field, size_t)(ps); char *sfx = " KMG"; size_t frac = 0; |