gentoo-ebuilds/app-text/uudeview/files/uudeview-0.5.20-format-string-warning-inews.patch
Hanno Böck d15eae1e2a
app-text/uudeview: Fix format string and function definition issues.
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>
2022-11-26 18:48:25 +01:00

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");