From b63e92b54052f37e0939f4237c917b2e80dd9cd8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 1 Apr 2011 23:30:12 -0400 Subject: [PATCH] Code Cleanup - Converted atoi to strtol. - Added include, which is causing tinderbox fail. --- src/feedback.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/feedback.cpp b/src/feedback.cpp index 4aacdfb8a..ae453b17d 100644 --- a/src/feedback.cpp +++ b/src/feedback.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -279,7 +280,7 @@ std::string renderAttribute (const std::string& name, const std::string& value) if (a.type (name) == "date" && value != "") { - Date d ((time_t)::atoi (value.c_str ())); + Date d ((time_t)::strtol (value.c_str (), NULL, 10)); return d.toString (context.config.get ("dateformat")); }