Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7fcb0ee authored by Peter Martuccelli's avatar Peter Martuccelli Committed by David Woodhouse
Browse files

[AUDIT] Avoid using %*.*s format strings.



They don't seem to work correctly (investigation ongoing), but we don't
actually need to do it anyway.

Patch from Peter Martuccelli <peterm@redhat.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent d812ddbb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -540,8 +540,8 @@ static inline int audit_log_drain(struct audit_buffer *ab)
		if (!audit_pid) { /* No daemon */
			int offset = ab->nlh ? NLMSG_SPACE(0) : 0;
			int len    = skb->len - offset;
			printk(KERN_ERR "%*.*s\n",
			       len, len, skb->data + offset);
			skb->data[offset + len] = '\0';
			printk(KERN_ERR "%s\n", skb->data + offset);
		}
		kfree_skb(skb);
		ab->nlh = NULL;