[WGID-289372] Specify length in scanf 83/149483/1 accepted/tizen/unified/20170914.065449 submit/tizen/20170913.024954
authorchleun.moon <chleun.moon@samsung.com>
Tue, 12 Sep 2017 09:24:59 +0000 (18:24 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Tue, 12 Sep 2017 09:26:30 +0000 (18:26 +0900)
Change-Id: I5b37dd95f610f9d2c7a577d631984d262b7e1f1e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
test/vpn_test.c

index cebf075d4310fcc1d041355540960693fb7be848..32e4cfaacefe1978def54a91e424d1b178351bb0 100755 (executable)
@@ -665,7 +665,7 @@ static char* __get_user_input(char *what)
        char *value = NULL;
 
        printf("Please ENTER %s:", what);
-       if (scanf(" %[^\n]s", buf) < 0)
+       if (scanf(" %127[^\n]s", buf) < 0)
                printf("Error in Reading the data to Buffer\n");
        else
                value = g_strdup(buf);