From 05f18ee955c67786edb246fcbc9c4b24366d41ba Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 8 Jun 2017 19:15:46 +0900 Subject: [PATCH] bug fix: Modify dereference issue Change-Id: I988e9e45751b9a8ccd42407b3371e10b80d8d9dc --- packaging/capi-network-http.spec | 2 +- src/http_request.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/capi-network-http.spec b/packaging/capi-network-http.spec index 90c415a..5bac4e9 100644 --- a/packaging/capi-network-http.spec +++ b/packaging/capi-network-http.spec @@ -1,6 +1,6 @@ Name: capi-network-http Summary: Http Framework -Version: 0.0.23 +Version: 0.0.24 Release: 0 Group: System/Network License: Apache-2.0 diff --git a/src/http_request.c b/src/http_request.c index 9ebb178..a3c8c8b 100644 --- a/src/http_request.c +++ b/src/http_request.c @@ -367,7 +367,7 @@ int _read_request_body(http_transaction_h http_transaction, char **body) memcpy(*body + curr_len, ptr, body_size); - body[new_len] = '\0'; + (*body)[new_len] = '\0'; curr_len = new_len; } -- 2.7.4