Bug
- 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:
committed by
Paul Beckingham
parent
ebdcccbf41
commit
f656c2024d
@@ -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 ());
|
||||
|
||||
Reference in New Issue
Block a user