+9
−8
Loading
strcpy() is deprecated; use memcpy() and strscpy() instead. Add the local variable 'size_t len' to keep track of the string lengths and prefer memcpy() over strscpy() when we use the string length to advance the 'cp' pointer. No functional changes intended. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by:Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by:
Thomas Bogendoerfer <tsbogend@alpha.franken.de>