summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinc/main.h1
-rwxr-xr-xsrc/main.c2
2 files changed, 2 insertions, 1 deletions
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);
}