From 705061b922d87b99f8ad41fe69e20608369263ce Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Fri, 16 Aug 2013 10:45:43 +0900 Subject: [PATCH 1/1] add patch --- packaging/osp-ime.spec | 1 + src/app/FApp_ImeEntry.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packaging/osp-ime.spec b/packaging/osp-ime.spec index 10ff3c0..5aa231d 100644 --- a/packaging/osp-ime.spec +++ b/packaging/osp-ime.spec @@ -1,3 +1,4 @@ +%define debug_package %{nil} %define __strip /bin/true Name: osp-ime diff --git a/src/app/FApp_ImeEntry.cpp b/src/app/FApp_ImeEntry.cpp index 9517878..fb6c717 100755 --- a/src/app/FApp_ImeEntry.cpp +++ b/src/app/FApp_ImeEntry.cpp @@ -20,6 +20,7 @@ * @brief This is the entry point for the IME application. */ +#include #include #include // LOG() #include // open() @@ -398,6 +399,7 @@ scim_helper_module_set_path_info(const char* path) memset(symbolicLinkPath, '\0', _MAX_BUFFER_SIZE); ssize_t byteCount = -1; byteCount = readlink(path, symbolicLinkPath, _MAX_BUFFER_SIZE); + assert(byteCount != -1); LOG(LOG_DEBUG, _LOG_TAG_IME, "%s {%d) > The byteCount is %d.", __func__, __LINE__, byteCount); // parse ime info -- 2.7.4