ALT Linux Bugzilla
– Attachment 13009 Details for
Bug 45927
procps: ошибка сборки с GCC 13
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
disable_trunc_error.patch
disable_trunc_error.patch (text/plain), 648 bytes, created by
Mikhail Efremov
on 2023-04-24 17:58:13 MSK
(
hide
)
Description:
disable_trunc_error.patch
Filename:
MIME Type:
Creator:
Mikhail Efremov
Created:
2023-04-24 17:58:13 MSK
Size:
648 bytes
patch
obsolete
>diff --git a/top/top.c b/top/top.c >index e64c8660..52b0a050 100644 >--- a/top/top.c >+++ b/top/top.c >@@ -4467,9 +4467,12 @@ static void whack_terminal (void) { > static void win_names (WIN_t *q, const char *name) { > /* note: sprintf/snprintf results are "undefined" when src==dst, > according to C99 & POSIX.1-2001 (thanks adc) */ >+#pragma GCC diagnostic push >+#pragma GCC diagnostic warning "-Wformat-truncation" > if (q->rc.winname != name) > snprintf(q->rc.winname, sizeof(q->rc.winname), "%s", name); > snprintf(q->grpname, sizeof(q->grpname), "%d:%s", q->winnum, name); >+#pragma GCC diagnostic pop > } // end: win_names > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45927
:
12996
| 13009