Fix 'writing 1 byte into region of size 0'

This commit is contained in:
Duke
2024-04-18 06:41:25 -07:00
parent b9d4dbbbd6
commit 0d0a7e9587

View File

@@ -29,8 +29,8 @@ SendManyRecipient newSietchRecipient(string zaddr) {
// Sietch zouts have random data in their memos so they are indistinguishable from // Sietch zouts have random data in their memos so they are indistinguishable from
// encrypted data being stored in the memo field // encrypted data being stored in the memo field
char hex[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}; char hex[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
// memo field is 512 bytes or 1024 hex chars // memo field is 512 bytes or 1024 hex chars plus a null byte
char str[1024]; char str[1025];
for(int i=0;i<1024;i++) { for(int i=0;i<1024;i++) {
str[i] = hex[GetRandInt(16)]; str[i] = hex[GetRandInt(16)];
} }