Fix Visual Studio Code Analysis warning C6054: String 'szStr' might not be zero-terminated

svn path=/trunk/; revision=54049
This commit is contained in:
Chris Maynard 2013-12-13 17:13:33 +00:00
parent fae2172c83
commit 97964f3ebd
1 changed files with 2 additions and 0 deletions

View File

@ -429,6 +429,8 @@ dissect_get_BSTR_resp(tvbuff_t *tvb, int offset,
if (u32Pointer) {
offset = dissect_dcom_BSTR(tvb, offset, pinfo, tree, di, drep,
hfindex, szStr, u32MaxStr);
} else {
szStr[0] = '\0';
}
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, di, drep,