- Fix sanity check for the first digit of day in a date.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Louis-Claude Canon 2012-04-29 19:57:02 +02:00 committed by Paul Beckingham
parent ebdcccbf41
commit f656c2024d

View file

@ -748,7 +748,7 @@ bool Nibbler::getDate (const std::string& format, time_t& t)
case 'd':
if (i + 2 <= _length &&
isdigit (_input[i + 1]) &&
isdigit (_input[i + 0]) &&
isdigit (_input[i + 1]))
{
day = atoi (_input.substr (i, 2).c_str ());