diff options
author | David Cole <david.cole@kitware.com> | 2006-08-10 19:17:53 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2006-08-10 19:17:53 (GMT) |
commit | 76d05cd5fa34e2a54f91f3388fe2849064c05b5e (patch) | |
tree | 70e27a219f94748a22e5572a4e7747601d5fc532 /Source | |
parent | 65e3842d513787e3e5b432af08743e6cc4f0a92f (diff) | |
download | CMake-76d05cd5fa34e2a54f91f3388fe2849064c05b5e.zip CMake-76d05cd5fa34e2a54f91f3388fe2849064c05b5e.tar.gz CMake-76d05cd5fa34e2a54f91f3388fe2849064c05b5e.tar.bz2 |
BUG: strlen logic was backwards resulting in function body never actually executing... when called with valid strings, it was always doing nothing and returning false... now it works as expected.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index bd824d3..7c0242c 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1764,7 +1764,7 @@ long int SystemTools::CreationTime(const char* filename) bool SystemTools::ConvertDateMacroString(const char *str, time_t *tmt) { - if (!str || !tmt || strlen(str) < 12) + if (!str || !tmt || strlen(str) > 11) { return false; } @@ -1812,7 +1812,7 @@ bool SystemTools::ConvertDateMacroString(const char *str, time_t *tmt) bool SystemTools::ConvertTimeStampMacroString(const char *str, time_t *tmt) { - if (!str || !tmt || strlen(str) < 27) + if (!str || !tmt || strlen(str) > 26) { return false; } |