From 787b4dda42f554943039199bbd924ec600dc5452 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Tue, 12 Sep 2017 18:24:59 +0900 Subject: [PATCH] [WGID-289372] Specify length in scanf Change-Id: I5b37dd95f610f9d2c7a577d631984d262b7e1f1e Signed-off-by: Cheoleun Moon --- test/vpn_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/vpn_test.c b/test/vpn_test.c index cebf075..32e4cfa 100755 --- a/test/vpn_test.c +++ b/test/vpn_test.c @@ -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); -- 2.34.1