void-packages/srcpkgs/pbbuttonsd/patches/001-no-ftbfs-format-security.diff
q66 d9cc3b4898 New package: pbbuttonsd-0.8.1a
This is a daemon that allows functionality such as keyboard
backlight and media keys in general to work on Apple PowerPC
laptops.
2020-02-09 03:10:17 +01:00

21 lines
637 B
Diff

Description: 01-no-ftbfs-format-security.diff
- Replace a call to fprintf with no arguments with an equivalent fputs.
- Use "%s" as a format string and pass inptr as an argument when calling
syslog(3).
Author: Steve Langasek <vorlon@debian.org>
--- pbbuttonsd-0.7.9.orig/libpbbipc/pbb_errno.c
+++ pbbuttonsd-0.7.9/libpbbipc/pbb_errno.c
@@ -108,9 +108,9 @@
*/
if (base->daemon != PBBDS_NONE) {
if (type == PBB_ERR && base->daemon != PBBDS_CHILD)
- fprintf(stderr, inptr);
- syslog(level, inptr);
+ fputs(inptr, stderr);
+ syslog(level, "%s", inptr);
} else
- fprintf(stderr, inptr);
+ fputs(inptr, stderr);
}