Fix coverity issue (string not null terminated) 69/224769/1 accepted/tizen/unified/20200214.050307 submit/tizen/20200213.050319
authorsinikang <sinikang@samsung.com>
Thu, 13 Feb 2020 02:47:56 +0000 (11:47 +0900)
committersinikang <sinikang@samsung.com>
Thu, 13 Feb 2020 02:47:56 +0000 (11:47 +0900)
Change-Id: Iead15f0387fe6aa058a990650c35060f7b3d8917
Signed-off-by: sinikang <sinikang@samsung.com>
packaging/tel-plugin-nitz.spec
src/time_update.c

index b4fb1f1e14c50420116bd372101afd0b42c98cd5..169bdd947aeb979e5d8b153fe992c315add63a09 100644 (file)
@@ -3,7 +3,7 @@
 
 %define major 0
 %define minor 1
-%define patchlevel 80
+%define patchlevel 81
 
 Name:       tel-plugin-nitz
 Summary:    nitz plugin for telephony
index 8ef530393638764159744a7ce20571c4f7960c53..ac06fcb409802865d04c97f745056a011e39ccf4 100644 (file)
@@ -170,6 +170,7 @@ gboolean nitz_apply_tzfile(const char *tzfilename)
        if (len < 0) {
                err("Fail to get Current Zone Info");
        } else {
+               current_tz[len] = 0x00;
                if (g_strcmp0(current_tz, buf) == 0) {
                        info("[TIMESTAMP] We don't need to set timezone again (Already applied)");
                        return FALSE;