mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-10 07:04:13 +02:00
This fixes two compiler warnings about possible format string risks and missing function definitions that will cause errors in clang 16. Closes: https://bugs.gentoo.org/521266 Closes: https://bugs.gentoo.org/874960 Closes: https://github.com/gentoo/gentoo/pull/28420 Signed-off-by: Hanno Böck <hanno@gentoo.org>
11 lines
384 B
Diff
11 lines
384 B
Diff
--- a/inews/inews.c 2022-11-26 18:44:03.788039229 +0100
|
|
+++ b/inews/inews.c 2022-11-26 18:44:47.376080190 +0100
|
|
@@ -303,7 +303,7 @@
|
|
putc(*cp, ser_wr_fp);
|
|
else { /* Stupid & hack. God damn it. */
|
|
putc(toupper(passwd->pw_name[0]), ser_wr_fp);
|
|
- fprintf(ser_wr_fp, passwd->pw_name+1);
|
|
+ fprintf(ser_wr_fp, "%s", passwd->pw_name+1);
|
|
}
|
|
|
|
fprintf(ser_wr_fp, ")\r\n");
|