[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require
From: |
Flavio Cruz |
Subject: |
[PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require more characters. |
Date: |
Fri, 29 Dec 2023 16:21:00 -0500 |
This makes GCC happy.
---
libps/spec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libps/spec.c b/libps/spec.c
index dec5704..9f64703 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;
--
2.39.2
- [PATCH hurd 02/11] Cast bootinfo to struct diskfs_control * to silence warning, (continued)
- [PATCH hurd 02/11] Cast bootinfo to struct diskfs_control * to silence warning, Flavio Cruz, 2023/12/29
- [PATCH hurd 04/11] Fix printf format specifiers, Flavio Cruz, 2023/12/29
- [PATCH hurd 07/11] Fix a few pointer related warnings., Flavio Cruz, 2023/12/29
- [PATCH hurd 05/11] x86_64: utmp uses int32_t to store time so use a temporary variable, Flavio Cruz, 2023/12/29
- [PATCH hurd 03/11] Use mach_msg_type_number_t whenever required to avoid warnings, Flavio Cruz, 2023/12/29
- [PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require more characters.,
Flavio Cruz <=
- [PATCH hurd 09/11] Fix overflow issues in tmpfs and vmallocate, Flavio Cruz, 2023/12/29
- [PATCH hurd 10/11] libftpconn: add out >= 2 condition to make GCC happy, Flavio Cruz, 2023/12/29
- [PATCH hurd 11/11] pfinet: fix type alias, Flavio Cruz, 2023/12/29
- [PATCH hurd 08/11] proxy-defpager: add missing return statement, Flavio Cruz, 2023/12/29
- Re: [PATCH hurd 01/11] Initialize a few error variables to avoid GCC warnings, Samuel Thibault, 2023/12/29