Fixed date input
This commit is contained in:
parent
5d57dad57a
commit
68ab3f4eef
@ -567,7 +567,7 @@ void GetDate(char *sStr, int iMaxlen)
|
|||||||
PUTCHAR(ch);
|
PUTCHAR(ch);
|
||||||
if (iPos == 2 || iPos == 5) {
|
if (iPos == 2 || iPos == 5) {
|
||||||
PUTCHAR('-');
|
PUTCHAR('-');
|
||||||
snprintf(sStr + strlen(sStr), 1, "-");
|
snprintf(sStr + strlen(sStr), 2, "-");
|
||||||
iPos++;
|
iPos++;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user