Fix info os cfwversion/memory by adding null terminator to xml files (thanks @fincs)
This commit is contained in:
parent
8c03702c7d
commit
fde3b70d03
@ -320,7 +320,7 @@ int GDB_SendStreamData(GDBContext *ctx, const char *streamData, u32 offset, u32
|
|||||||
|
|
||||||
if((forceEmptyLast && offset >= totalSize) || (!forceEmptyLast && offset + length >= totalSize))
|
if((forceEmptyLast && offset >= totalSize) || (!forceEmptyLast && offset + length >= totalSize))
|
||||||
{
|
{
|
||||||
length = totalSize - offset;
|
length = offset >= totalSize ? 0 : totalSize - offset;
|
||||||
buf[0] = 'l';
|
buf[0] = 'l';
|
||||||
memcpy(buf + 1, streamData + offset, length);
|
memcpy(buf + 1, streamData + offset, length);
|
||||||
return GDB_SendPacket(ctx, buf, 1 + length);
|
return GDB_SendPacket(ctx, buf, 1 + length);
|
||||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user