d9cc3b4898
This is a daemon that allows functionality such as keyboard backlight and media keys in general to work on Apple PowerPC laptops.
21 lines
637 B
Diff
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);
|
|
}
|
|
|