diff options
author | Peter Martuccelli <peterm@redhat.com> | 2005-04-29 11:10:24 -0400 |
---|---|---|
committer | <dwmw2@shinybook.infradead.org> | 2005-04-29 11:10:24 -0400 |
commit | c7fcb0ee74ef4cfdea02befacb55945c93641e44 (patch) | |
tree | fbc01cfa85e2f7a3d070098e7d67d0196f52fa40 /kernel/audit.c | |
parent | d812ddbb89e323d054a7d073466225966c8350c8 (diff) |
[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: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index aa35422c0c42..42ce282728b6 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -540,8 +540,8 @@ static inline int audit_log_drain(struct audit_buffer *ab) | |||
540 | if (!audit_pid) { /* No daemon */ | 540 | if (!audit_pid) { /* No daemon */ |
541 | int offset = ab->nlh ? NLMSG_SPACE(0) : 0; | 541 | int offset = ab->nlh ? NLMSG_SPACE(0) : 0; |
542 | int len = skb->len - offset; | 542 | int len = skb->len - offset; |
543 | printk(KERN_ERR "%*.*s\n", | 543 | skb->data[offset + len] = '\0'; |
544 | len, len, skb->data + offset); | 544 | printk(KERN_ERR "%s\n", skb->data + offset); |
545 | } | 545 | } |
546 | kfree_skb(skb); | 546 | kfree_skb(skb); |
547 | ab->nlh = NULL; | 547 | ab->nlh = NULL; |