Fix info os cfwversion/memory by adding null terminator to xml files (thanks @fincs)

This commit is contained in:
TuxSH 2019-06-28 23:44:09 +02:00
parent 8c03702c7d
commit fde3b70d03
3 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ int GDB_SendStreamData(GDBContext *ctx, const char *streamData, u32 offset, u32
if((forceEmptyLast && offset >= totalSize) || (!forceEmptyLast && offset + length >= totalSize))
{
length = totalSize - offset;
length = offset >= totalSize ? 0 : totalSize - offset;
buf[0] = 'l';
memcpy(buf + 1, streamData + offset, length);
return GDB_SendPacket(ctx, buf, 1 + length);