qt5_msgbox: fix bug by replacing strnlen with strlen
authorunknown <jihye.won1@samsung.com>
Wed, 11 Nov 2015 00:40:40 +0000 (09:40 +0900)
committerunknown <jihye.won1@samsung.com>
Wed, 11 Nov 2015 00:54:45 +0000 (09:54 +0900)
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 <jihye.won1@samsung.com>
tizen/src/util/qt5_error_report.c

index dacc5a1614720e05ef40a32c75f000333c0e8c32..8e67aafdd54b9509265604ed0b8fe54eb80abba8 100644 (file)
@@ -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;
     }