[test]: Fixed the test application issue 75/39375/1
authorManeesh Jain <maneesh.jain@samsung.com>
Thu, 14 May 2015 04:20:22 +0000 (09:50 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Thu, 14 May 2015 04:20:22 +0000 (09:50 +0530)
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 <maneesh.jain@samsung.com>
packaging/capi-network-connection.spec
test/connection_test.c

index a3ad2cb..1b2bba8 100644 (file)
@@ -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
index aa68ef6..76f5db9 100644 (file)
@@ -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;
 }