Change-Id: I8aa9202429fafdbfee845fda9c7d516a37ea1590
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Name: capi-network-http
Summary: Http Framework
-Version: 0.0.28
+Version: 0.0.29
Release: 0
Group: System/Network
License: Apache-2.0
__http_transaction_h* transaction = (__http_transaction_h *)user_data;
__http_response_h*response = (__http_response_h *)transaction->response;
- gchar status_code[HTTP_STATUS_CODE_SIZE] = {0, };
+ gchar status_code[HTTP_STATUS_CODE_SIZE + 1] = {0, };
gchar* start = NULL;
gchar* end = NULL;
FILE *fp;
size_t file_size;
size_t chunk_size = 50;
- char *buf = malloc(chunk_size);
+ char *buf = malloc(chunk_size + 1);
if (stat(file_path, &file_info) != 0) {
ERR("stat() is failed", -1);