diff options
-rwxr-xr-x | inc/main.h | 1 | ||||
-rwxr-xr-x | src/main.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -74,6 +74,7 @@ typedef enum { typedef enum { TMR_SYSTIME_TYPE_USEC, TMR_SYSTIME_TYPE_SEC, + TMR_SYSTIME_TYPE_MAX, } TMR_SYSTIME_TYPE; @@ -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); } |