dtcm: Coverity 88481
This commit is contained in:
@@ -767,7 +767,7 @@ convert_2_tick(char *datestr)
|
|||||||
|
|
||||||
memset((void *)&tmstr, 0, sizeof(struct tm));
|
memset((void *)&tmstr, 0, sizeof(struct tm));
|
||||||
|
|
||||||
strcpy(datebuf, datestr);
|
snprintf(datebuf, sizeof(datebuf), "%s", datestr);
|
||||||
|
|
||||||
/* get week day */
|
/* get week day */
|
||||||
ptr = strtok(datebuf, " ");
|
ptr = strtok(datebuf, " ");
|
||||||
|
|||||||
Reference in New Issue
Block a user