fix svace 49814 45/52045/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 18 Nov 2015 11:41:12 +0000 (20:41 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 18 Nov 2015 11:41:12 +0000 (20:41 +0900)
Change-Id: I53d2cab560a382d1beb163db94a2161850fcf901

test/mm_radio_rt_api_test.c

index 1b1224f..1f3c9a9 100755 (executable)
@@ -227,13 +227,12 @@ int __menu(void)
        if ( scanf("%d", &menu_item) == 0)
        {
                char temp[_MAX_INPUT_STRING_];
-                if (scanf("%s", temp) ==0)
-                {
-                        printf("Error while flushing the input buffer - but lets continue\n");
-                }
-               return -1;
+        if (scanf("%99s", temp) ==0)
+        {
+            printf("Error while flushing the input buffer - but lets continue\n");
         }
-
+               return -1;
+    }
 
        if ( menu_item > MENU_ITEM_MAX )
                menu_item = -1;