Skip to content
Commit ee0d5810 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Ben Skeggs
Browse files

drm/nouveau: nouveau: use correct string length



gcc-8 reports

drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c: In function 'nvkm_perfmon_mthd':
include/linux/string.h:265:9: error: '__builtin_strncpy' specified bound 64 equals destination size [-Werror=stringop-truncation]

We need one less byte or call strlcpy() to make it a
nul-terminated string.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 94ee54dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment