module/clock/clock: Warning fix. 46/64546/2 accepted/tizen/mobile/20160406.015154 accepted/tizen/mobile/20160407.112457 submit/tizen_mobile/20160405.132551 submit/tizen_mobile/20160407.072146
authorRadoslaw Czerski <r.czerski@samsung.com>
Fri, 1 Apr 2016 15:13:35 +0000 (17:13 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 4 Apr 2016 10:03:19 +0000 (03:03 -0700)
Change-Id: Icdf402b7a22d2e662af5d9b3b51a4b15ef767a7f
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
src/modules/clock/clock.c

index 7164598..0c5af00 100644 (file)
@@ -553,10 +553,10 @@ void indicator_get_time_by_region(char* output,void *data)
        int32_t best_pattern_len, formatted_len;
 
        if (clock_mode == INDICATOR_CLOCK_MODE_12H) {
-               strcpy(s_time_skeleton, "hm");
+               strncpy(s_time_skeleton, "hm", 2);
        }
        else {
-               strcpy(s_time_skeleton, "Hm");
+               strncpy(s_time_skeleton, "Hm", 2);
        }
 
        ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, &locale);