From f656c2024d6a4b9f43517c614e3924476467edde Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Sun, 29 Apr 2012 19:57:02 +0200 Subject: [PATCH] Bug - Fix sanity check for the first digit of day in a date. Signed-off-by: Paul Beckingham --- src/Nibbler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nibbler.cpp b/src/Nibbler.cpp index 156cf4fbd..50a28d904 100644 --- a/src/Nibbler.cpp +++ b/src/Nibbler.cpp @@ -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 ());