From 9f64896b1224021b856f17d8f25f3d7a6c7ab443 Mon Sep 17 00:00:00 2001 From: Harshdeep Vaghela Date: Thu, 8 Dec 2016 19:05:06 +0530 Subject: [Timer] Fixing SVACE issues Change-Id: I7c0ea74665ebdcc8c6c57aa5a5f2f17bb46ac4d1 Signed-off-by: Harshdeep Vaghela --- inc/main.h | 1 + src/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/main.h b/inc/main.h index f83d455..6b50952 100755 --- a/inc/main.h +++ b/inc/main.h @@ -74,6 +74,7 @@ typedef enum { typedef enum { TMR_SYSTIME_TYPE_USEC, TMR_SYSTIME_TYPE_SEC, + TMR_SYSTIME_TYPE_MAX, } TMR_SYSTIME_TYPE; diff --git a/src/main.c b/src/main.c index 89b4db0..432a533 100755 --- a/src/main.c +++ b/src/main.c @@ -190,7 +190,7 @@ static void _tmr_string_to_upper(char *text) gchar *strLower = (gchar *)text; gchar *goodUpper = g_utf8_strup(strLower, -1); - strncpy(text, goodUpper, strlen(goodUpper)); + strncpy(text, goodUpper, strlen(text)); g_free(goodUpper); } -- cgit v1.2.3