Messages in this thread | | | Date | Fri, 2 Nov 2012 14:32:47 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] sscanf: don't ignore field widths for numeric conversions |
| |
On Fri, 02 Nov 2012 14:44:08 +0000 "Jan Beulich" <JBeulich@suse.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?
| |