Re: [PATCH v2 26/28] video: fbdev: uvesafb: Fix string related warnings

2020-12-01 Thread Thomas Zimmermann
Hi Am 28.11.20 um 23:41 schrieb Sam Ravnborg: Two W=1 string related warnings. - Using strncpy to copy string without null-termination generates a warning. Use memcpy to copy only the relevant chars - Fix a potential bug with a very long string, subtract one from the length to make room

[PATCH v2 26/28] video: fbdev: uvesafb: Fix string related warnings

2020-11-28 Thread Sam Ravnborg
Two W=1 string related warnings. - Using strncpy to copy string without null-termination generates a warning. Use memcpy to copy only the relevant chars - Fix a potential bug with a very long string, subtract one from the length to make room for the termination null. Signed-off-by: Sam Ravnb