diff --git a/EasyHautX/Info.plist b/EasyHautX/Info.plist
index dd10fd7..9e19d3b 100644
--- a/EasyHautX/Info.plist
+++ b/EasyHautX/Info.plist
@@ -19,7 +19,7 @@
 	<key>CFBundleShortVersionString</key>
 	<string>0.1.0</string>
 	<key>CFBundleVersion</key>
-	<string>1</string>
+	<string>2</string>
 	<key>LSApplicationCategoryType</key>
 	<string>public.app-category.utilities</string>
 	<key>LSMinimumSystemVersion</key>
diff --git a/EasyHautX/httpclient.cc b/EasyHautX/httpclient.cc
index ea872c4..23825b0 100644
--- a/EasyHautX/httpclient.cc
+++ b/EasyHautX/httpclient.cc
@@ -93,7 +93,7 @@ size_t srun3k_login(const char *url, payload_t *payload, const char *key, char *
             return 0;
         } else {
             std::cout << readBuffer << std::endl;
-            size_t ret_size = sizeof(char) * readBuffer.length();
+            size_t ret_size = sizeof(char) * (readBuffer.length() + 1);
             *response = (char *)malloc(ret_size);
             snprintf(*response, ret_size, "%s", readBuffer.c_str());
             return ret_size;
@@ -127,7 +127,7 @@ size_t srun3k_logout(const char *url, Payload payload, char **response) {
 
         if (res == CURLE_OK) {
             std::cout << readBuffer << std::endl;
-            size_t ret_size = sizeof(char) * readBuffer.length();
+            size_t ret_size = sizeof(char) * (readBuffer.length() + 1);
             *response = (char *)malloc(ret_size);
             snprintf(*response, ret_size, "%s", readBuffer.c_str());
             return ret_size;