Set '\0' properly in StrnCpy()
commit5bb5032fdacf183d53b1e0154d281a223d684eea
authorGary Lin <glin@suse.com>
Tue, 9 Oct 2018 10:35:21 +0000 (9 18:35 +0800)
committerNigel Croxon <ncroxon@redhat.com>
Fri, 12 Oct 2018 12:17:20 +0000 (12 08:17 -0400)
treeef081e182e3c09f5c824c239cdd0e5686eae3134
parent183ec634eec7aee214e4e2baa728bc9c68c492f0
Set '\0' properly in StrnCpy()

The arguments to SetMem() were wrong. Besides, SetMem() should start at
"Dest + Size" since "Size" will be smaller than "Len" if they are not
equal.

Signed-off-by: Gary Lin <glin@suse.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
lib/runtime/rtstr.c