Update HAL_Timer_tencentos_tiny.c

This commit is contained in:
David Lin
2020-04-26 21:06:22 +08:00
committed by GitHub
parent 2096bca000
commit 1581cefe97

View File

@@ -50,7 +50,7 @@ char* HAL_Timer_current(void)
long time_sec;
time_sec = HAL_Timer_current_sec();
memset(now_time_str, 0, 20);
memset(now_time_str, 0, sizeof(now_time_str));
snprintf(now_time_str, 20, "%ld", time_sec);
return now_time_str;