Fixed date input

This commit is contained in:
Michiel Broek 2005-08-30 18:26:49 +00:00
parent 5d57dad57a
commit 68ab3f4eef

View File

@ -567,7 +567,7 @@ void GetDate(char *sStr, int iMaxlen)
PUTCHAR(ch);
if (iPos == 2 || iPos == 5) {
PUTCHAR('-');
snprintf(sStr + strlen(sStr), 1, "-");
snprintf(sStr + strlen(sStr), 2, "-");
iPos++;
}
} else