diff --git a/src/Cedar/Virtual.c b/src/Cedar/Virtual.c index 1fc2c9c6..512449b6 100644 --- a/src/Cedar/Virtual.c +++ b/src/Cedar/Virtual.c @@ -6118,7 +6118,7 @@ void EncodeNetBiosName(UCHAR *dst, char *src) copy_len = 16; } - Copy(tmp, src, StrLen(src)); + Copy(tmp, src, copy_len); wp = 0;