]> Git Repo - linux.git/commit - lib/string.c
lib: memscan() fixlet
authorAlexey Dobriyan <[email protected]>
Thu, 1 Jul 2021 01:56:01 +0000 (18:56 -0700)
committerLinus Torvalds <[email protected]>
Thu, 1 Jul 2021 18:06:05 +0000 (11:06 -0700)
commit1a58be6277e4324c853babfd35890c2d5e171e8f
tree066d8698cae0b90448aa04517bc2ad65a5911c99
parent478485f6c0e5936b62c0c9393a865bfb00f037a5
lib: memscan() fixlet

Generic version doesn't trucate second argument to char.

Older brother memchr() does as do s390, sparc and i386 assembly versions.

Fortunately, no code passes c >= 256.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/string.c
This page took 0.05139 seconds and 4 git commands to generate.