[winpr,clipboard] fix length of uri list

we overallocate the size, so ensure the result size only contains the
data actually used.
This commit is contained in:
Armin Novak
2023-02-23 21:28:33 +01:00
committed by akallabeth
parent b8814e723a
commit e1307b90db

View File

@@ -917,7 +917,8 @@ static void* convert_filedescriptors_to_file_list(wClipboard* clipboard, UINT32
}
}
}
winpr_HexDump(TAG, WLOG_DEBUG, (const BYTE*)dst, alloc);
alloc = strnlen(dst, alloc) + 1;
*pSize = (UINT32)alloc;
clipboard->fileListSequenceNumber = clipboard->sequenceNumber;
return dst;