From 68ab3f4eefcf250fdaa9682a27234fccaa80ad1b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 30 Aug 2005 18:26:49 +0000 Subject: [PATCH] Fixed date input --- mbsebbs/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbsebbs/input.c b/mbsebbs/input.c index a50e99f7..1add0058 100644 --- a/mbsebbs/input.c +++ b/mbsebbs/input.c @@ -535,8 +535,8 @@ void Getnum(char *sStr, int iMaxlen) */ void GetDate(char *sStr, int iMaxlen) { - unsigned char ch = 0; - int iPos = 0; + unsigned char ch = 0; + int iPos = 0; FLUSHIN(); strcpy(sStr, ""); @@ -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