From 98c074918f9047da6d73d8d19bd077649236373f Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Thu, 12 Feb 2009 15:53:38 +0900 Subject: [PATCH] --- yaml --- r: 132619 b: refs/heads/master c: 35d50e60e8b12e4adc2fa317343a176d87294a72 h: refs/heads/master i: 132617: 616f1516faba5961d1626dcc894013694f6cabec 132615: 3922c288b4bcd327cb613574f8552db7cd1df300 v: v3 --- [refs] | 2 +- trunk/security/tomoyo/tomoyo.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 4896ed633145..ecb9610fa577 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 42d5aaa2d826f54924e260b58a8e410e59d54163 +refs/heads/master: 35d50e60e8b12e4adc2fa317343a176d87294a72 diff --git a/trunk/security/tomoyo/tomoyo.c b/trunk/security/tomoyo/tomoyo.c index f3ab20758c0f..cc599b36a3a8 100644 --- a/trunk/security/tomoyo/tomoyo.c +++ b/trunk/security/tomoyo/tomoyo.c @@ -107,13 +107,13 @@ static char *tomoyo_sysctl_path(struct ctl_table *table) *--end = '\0'; buflen--; while (table) { - char buf[32]; + char num[32]; const char *sp = table->procname; if (!sp) { - memset(buf, 0, sizeof(buf)); - snprintf(buf, sizeof(buf) - 1, "=%d=", table->ctl_name); - sp = buf; + memset(num, 0, sizeof(num)); + snprintf(num, sizeof(num) - 1, "=%d=", table->ctl_name); + sp = num; } if (tomoyo_prepend(&end, &buflen, sp) || tomoyo_prepend(&end, &buflen, "/"))