From: unknown Date: Wed, 11 Nov 2015 00:40:40 +0000 (+0900) Subject: qt5_msgbox: fix bug by replacing strnlen with strlen X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5537fae30f4af09d5f2bcdd8b1ec644a0101a8d7;p=sdk%2Femulator%2Fqemu.git qt5_msgbox: fix bug by replacing strnlen with strlen Because the build environment of tizen_2.3.2 can not support cross-build, strnlen function does not exist in windows build environment. So, I added codes to use strlen function when building qemu in MINGW. Change-Id: I0a35ae5f582ad2034ed94898ee0ff0e49232462f Signed-off-by: Won Jihye --- diff --git a/tizen/src/util/qt5_error_report.c b/tizen/src/util/qt5_error_report.c index dacc5a1614..8e67aafdd5 100644 --- a/tizen/src/util/qt5_error_report.c +++ b/tizen/src/util/qt5_error_report.c @@ -67,7 +67,11 @@ void start_qt5_msgbox(qt5_msgbox_icon icon, const char *message) { INFO("qt5_msgbox starts... \n"); +#ifdef CONFIG_WIN32 + if (message[0] == '\n' && strlen(message) == 1) { +#else if (message[0] == '\n' && strnlen(message, MAX_MESSAGE_LEN) == 1) { +#endif ERR("The message has only a new-line character. \n" ); return; }