[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20121102143247.6c581e16.akpm@linux-foundation.org>
Date: Fri, 2 Nov 2012 14:32:47 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Jan Beulich" <JBeulich@...e.com>
Cc: <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sscanf: don't ignore field widths for numeric
conversions
On Fri, 02 Nov 2012 14:44:08 +0000
"Jan Beulich" <JBeulich@...e.com> wrote:
> This is another step towards better standard conformance. Rather than
> adding a local buffer to store the specified portion of the string
> (with the need to enforce an arbitrary maximum supported width to
> limit the buffer size), do a maximum width conversion and then drop as
> much of it as is necessary to meet the caller's request.
>
> Also fail on negative field widths.
>
> ...
>
> + simple_strtol(str, &next, base) :
simple_strtol() kerndoc says "This function is obsolete. Please use
kstrtol instead." Can we?
--
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