mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
@@ -180,7 +180,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *r)
|
||||
return RT_NULL;
|
||||
}
|
||||
|
||||
rt_memset(r, 0, sizeof(struct tm));
|
||||
rt_memset(r, RT_NULL, sizeof(struct tm));
|
||||
|
||||
r->tm_sec = work % 60;
|
||||
work /= 60;
|
||||
@@ -258,7 +258,7 @@ char* asctime_r(const struct tm *t, char *buf)
|
||||
return RT_NULL;
|
||||
}
|
||||
|
||||
rt_memset(buf, 0, 26);
|
||||
rt_memset(buf, RT_NULL, 26);
|
||||
|
||||
/* Checking input validity */
|
||||
if ((int)rt_strlen(days) <= (t->tm_wday << 2) || (int)rt_strlen(months) <= (t->tm_mon << 2))
|
||||
|
||||
Reference in New Issue
Block a user