Skip to content
Snippets Groups Projects
Commit a2eea84a authored by rswindell's avatar rswindell
Browse files

Fix sscanf format bug in isoDateTime_parse.

parent 8dba4888
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ isoDateTime_t isoDateTime_parse(const char* str) ...@@ -255,7 +255,7 @@ isoDateTime_t isoDateTime_parse(const char* str)
ZERO_VAR(xpDateTime); ZERO_VAR(xpDateTime);
ZERO_VAR(isoDateTime); ZERO_VAR(isoDateTime);
if((sscanf(str,"%4u%-%2u%-%2uT%2u:%2u:%f%6s" /* CCYY-MM-DDThh:MM:sshhmm */ if((sscanf(str,"%4u%-%2u-%2uT%2u:%2u:%f%6s" /* CCYY-MM-DDThh:MM:sshhmm */
,&xpDateTime.date.year ,&xpDateTime.date.year
,&xpDateTime.date.month ,&xpDateTime.date.month
,&xpDateTime.date.day ,&xpDateTime.date.day
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment