summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEunhae Choi <eunhae1.choi@samsung.com>2015-11-18 20:41:12 +0900
committerEunhae Choi <eunhae1.choi@samsung.com>2015-11-18 20:41:12 +0900
commit8ad6cd8ffadd66336da0f6dd9880f09002922b0d (patch)
treebab48975d06e18c12f141a95e819d90f91ea6e17
parent1b0195f757013da5eb1cca8a5ba52d53459a530e (diff)
downloadlibmm-radio-8ad6cd8ffadd66336da0f6dd9880f09002922b0d.tar.gz
libmm-radio-8ad6cd8ffadd66336da0f6dd9880f09002922b0d.tar.bz2
libmm-radio-8ad6cd8ffadd66336da0f6dd9880f09002922b0d.zip
fix svace 49814
Change-Id: I53d2cab560a382d1beb163db94a2161850fcf901
-rwxr-xr-xtest/mm_radio_rt_api_test.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/mm_radio_rt_api_test.c b/test/mm_radio_rt_api_test.c
index 1b1224f..1f3c9a9 100755
--- a/test/mm_radio_rt_api_test.c
+++ b/test/mm_radio_rt_api_test.c
@@ -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;