OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tomoyo: use vsnprintf() properly
[tomoyo/tomoyo-test1.git]
/
security
/
tomoyo
/
common.c
diff --git
a/security/tomoyo/common.c
b/security/tomoyo/common.c
index
ff17abc
..
f4cd9b5
100644
(file)
--- a/
security/tomoyo/common.c
+++ b/
security/tomoyo/common.c
@@
-2057,7
+2057,7
@@
int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...)
bool quota_exceeded = false;
va_start(args, fmt);
- len = vsnprintf(
(char *) &len, 1
, fmt, args) + 1;
+ len = vsnprintf(
NULL, 0
, fmt, args) + 1;
va_end(args);
/* Write /sys/kernel/security/tomoyo/audit. */
va_start(args, fmt);