Fix Svace issues (SIGN_EXTENSION) 36/289736/1 accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_8.0 tizen_9.0 accepted/tizen/8.0/unified/20231005.094321 accepted/tizen/9.0/unified/20241030.234912 accepted/tizen/unified/20230317.081021 tizen_8.0_m2_release tizen_9.0_m2_release
authorsooyeon <sooyeon.kim@samsung.com>
Tue, 14 Mar 2023 06:24:26 +0000 (15:24 +0900)
committersooyeon <sooyeon.kim@samsung.com>
Tue, 14 Mar 2023 06:24:47 +0000 (15:24 +0900)
Change-Id: I81932fb94120a7e828e8a070563d38d26bd86310
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
src/voice_control_webview.cpp

index ee3784267d4c28aeaeb119d5e1da2b809cb749a4..884282e320c370c748af5dcc3505f2f786ab9988 100755 (executable)
@@ -176,7 +176,7 @@ char* VCWebView::vc_webview_load_script(const char* filename)
        fseek(f, 0, SEEK_SET);
 
        char *script = new char[fsize + 1];
-       long int ret = fread(script, 1, fsize, f);
+       unsigned long int ret = fread(script, 1, fsize, f);
        if (ret != fsize) {
                LOGE("Couldn't read vc-webview.js file %ld, %ld", fsize, ret);
                fclose(f);
@@ -833,7 +833,7 @@ static void __js_get_script_name_cb(Evas_Object *obj, const char *javascript_res
                fseek(f, 0, SEEK_SET);
 
                char *script = new char[fsize + 1];
-               long int ret = fread(script, 1, fsize, f);
+               unsigned long int ret = fread(script, 1, fsize, f);
                if (ret != fsize) {
                        LOGE("Couldn't read vc-webview.js file %ld, %ld", fsize, ret);
                        fclose(f);