(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

mmc: core: Replace strcpy() in loop with memcpy() outside

When copying the info strings and generating a char ** list copy all the strings into the kmalloced buffer outside the loop and use strchr(str, 0) to find the next string inside the loop. Removes some strcpy() that static tools might think are unbounded. Signed-off-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>


Author David Laight Committer Ulf Hansson Date Commit Parent cee9395a
+2 -3
1 changed file
+2 -3
1 changed file