]> git.karo-electronics.de Git - linux-beck.git/commit
string: on strstrip(), first remove leading spaces before running over str
authorAndré Goddard Rosa <andre.goddard@gmail.com>
Tue, 15 Dec 2009 02:01:04 +0000 (18:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:32 +0000 (08:53 -0800)
commit84c95c9acf088c99d8793d78036b67faa5d0b851
tree170c528099f4f570e48220b546c7fc3e4e06be8a
parentf653398c86a1c104f0992bd788dd4bb065449be4
string: on strstrip(), first remove leading spaces before running over str

... so that strlen() iterates over a smaller string comprising of the
remaining characters only.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/string.c