[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A12AC0D.7000701@s5r6.in-berlin.de>
Date: Tue, 19 May 2009 14:54:37 +0200
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Lai Jiangshan <laijs@...fujitsu.com>
CC: Ingo Molnar <mingo@...e.hu>, Jiri Slaby <jirislaby@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Li Zefan <lizf@...fujitsu.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] tracing: use strlcpy instead of strncpy
Lai Jiangshan wrote:
> [Impact] cleanup
Well, not entirely.
> --- a/kernel/trace/trace.h
> +++ b/kernel/trace/trace.h
> @@ -155,8 +155,8 @@ struct trace_boot_ret {
> struct trace_branch {
> struct trace_entry ent;
> unsigned line;
> - char func[TRACE_FUNC_SIZE+1];
> - char file[TRACE_FILE_SIZE+1];
> + char func[TRACE_FUNC_SIZE];
> + char file[TRACE_FILE_SIZE];
> char correct;
> };
(without change of the TRACE_????_SIZE definition)
Better avoid a categorization of a patch if the change's scope exceeds
that of the categorization.
--
Stefan Richter
-=====-=-=== -=-= -==-=
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists