]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super-intel: Use memcpy() to avoid confusing gcc
authorJes Sorensen <jsorensen@fb.com>
Tue, 29 May 2018 20:09:47 +0000 (16:09 -0400)
committerJes Sorensen <jsorensen@fb.com>
Tue, 29 May 2018 20:09:47 +0000 (16:09 -0400)
commit167d8bb8302170676f0e15123738e333383fec7b
tree969445ff207b8e30eacd03ac3106cad18a4fdea5
parent760365f94409ccccbcb54d55070f0f422bee44a1
super-intel: Use memcpy() to avoid confusing gcc

When added :0 to serial number and copying it back, use memcpy()
instead of strncpy() as we know the actual length. This stops gcc
from complaining with -Werror=stringop-truncation enabled

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c