提交 c7fcb0ee 编写于 作者: P Peter Martuccelli 提交者:

[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: NDavid Woodhouse <dwmw2@infradead.org>
上级 d812ddbb
...@@ -540,8 +540,8 @@ static inline int audit_log_drain(struct audit_buffer *ab) ...@@ -540,8 +540,8 @@ static inline int audit_log_drain(struct audit_buffer *ab)
if (!audit_pid) { /* No daemon */ if (!audit_pid) { /* No daemon */
int offset = ab->nlh ? NLMSG_SPACE(0) : 0; int offset = ab->nlh ? NLMSG_SPACE(0) : 0;
int len = skb->len - offset; int len = skb->len - offset;
printk(KERN_ERR "%*.*s\n", skb->data[offset + len] = '\0';
len, len, skb->data + offset); printk(KERN_ERR "%s\n", skb->data + offset);
} }
kfree_skb(skb); kfree_skb(skb);
ab->nlh = NULL; ab->nlh = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册