From 6e40e2f1e2c3f2abd7414687b3082ed0f5faa588 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 26 Jul 2020 08:29:25 -0400 Subject: [PATCH] NULL terminator considered important --- src/sietch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sietch.h b/src/sietch.h index 630c3ce72..65908e2c9 100644 --- a/src/sietch.h +++ b/src/sietch.h @@ -32,6 +32,7 @@ SendManyRecipient newSietchRecipient(string zaddr) { for(int i=0;i<1024;i++) { str[i] = hex[GetRandInt(16)]; } + str[1024] = 0; return SendManyRecipient( zaddr, nAmount, string(str) ); }