From c361b7d9147146ca5d794b79b8ced75502955891 Mon Sep 17 00:00:00 2001
From: orignal <romakoshelkin@yandex.ru>
Date: Wed, 29 Jan 2014 17:43:20 -0500
Subject: [PATCH] use base64 alphabet directly

---
 NetDb.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/NetDb.cpp b/NetDb.cpp
index f150d283..278e8286 100644
--- a/NetDb.cpp
+++ b/NetDb.cpp
@@ -191,16 +191,15 @@ namespace data
 		}
 
 		// list of chars might appear in base64 string
-		const char * chars = GetBase64SubstitutionTable ();
+		const char * chars = GetBase64SubstitutionTable (); // 64 bytes
 		boost::filesystem::path suffix;
-		while (*chars)
+		for (int i = 0; i < 64; i++)
 		{
 #ifndef _WIN32
-			suffix = std::string ("/r") + *chars;
+			suffix = std::string ("/r") + chars[i];
 #else
-			suffix = std::string ("\\r") + *chars;
+			suffix = std::string ("\\r") + chars[i];
 #endif
-			chars++;	
 			if (!boost::filesystem::create_directory( boost::filesystem::path (p / suffix) )) return false;
 		}
 		return true;