From 0ee7f02f513ebc8530bf954f1ad30cef30ae98b8 Mon Sep 17 00:00:00 2001
From: orignal <i2porignal@yandex.ru>
Date: Thu, 11 Dec 2014 12:22:22 -0500
Subject: [PATCH] extend temporary buffer size to 1024

---
 Identity.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Identity.cpp b/Identity.cpp
index 593d2ad9..7b081185 100644
--- a/Identity.cpp
+++ b/Identity.cpp
@@ -226,17 +226,17 @@ namespace data
 
 	size_t IdentityEx::FromBase64(const std::string& s)
 	{
-		uint8_t buf[512];
-		auto len = Base64ToByteStream (s.c_str(), s.length(), buf, 512);
+		uint8_t buf[1024];
+		auto len = Base64ToByteStream (s.c_str(), s.length(), buf, 1024);
 		return FromBuffer (buf, len);
 	}	
 	
 	std::string IdentityEx::ToBase64 () const
 	{
-		uint8_t buf[512];
-		char str[1024];
-		size_t l = ToBuffer (buf, 512);
-		size_t l1 = i2p::data::ByteStreamToBase64 (buf, l, str, 1024);
+		uint8_t buf[1024];
+		char str[1536];
+		size_t l = ToBuffer (buf, 1024);
+		size_t l1 = i2p::data::ByteStreamToBase64 (buf, l, str, 1536);
 		str[l1] = 0;
 		return std::string (str);
 	}