From 2e98565c63a00078bddb7cd764b55624c9c868aa Mon Sep 17 00:00:00 2001 From: Maneesh Jain Date: Thu, 14 May 2015 09:50:22 +0530 Subject: [PATCH] [test]: Fixed the test application issue Description: This patch uses to fix the issue in test_get_user_string() function. Due to this issue, inet_pton() function return the error code zero. Change-Id: I61c5a1aadd20d2afab34e70097ed7cc9f621f832 Signed-off-by: Maneesh Jain --- packaging/capi-network-connection.spec | 2 +- test/connection_test.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index a3ad2cb..1b2bba8 100644 --- a/packaging/capi-network-connection.spec +++ b/packaging/capi-network-connection.spec @@ -1,6 +1,6 @@ Name: capi-network-connection Summary: Network Connection library in TIZEN C API -Version: 0.1.3_20 +Version: 0.1.3_21 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/test/connection_test.c b/test/connection_test.c index aa68ef6..76f5db9 100644 --- a/test/connection_test.c +++ b/test/connection_test.c @@ -47,9 +47,7 @@ static bool test_get_user_string(const char *msg, char *buf, int buf_size) return false; } - if (rv >= 0) - buf[rv] = '\0'; - + buf[rv-1]='\0'; return true; } -- 2.7.4