replace atol with atoll to fix result size display bug. Also use atoll for time conversions, 2032 is coming...
This commit is contained in:
+1
-1
@@ -1008,7 +1008,7 @@ bool Db::addOrUpdate(const string &udi, const string &parent_udi, Doc &doc)
|
||||
newdocument.add_term(make_parentterm(parent_udi));
|
||||
}
|
||||
// Dates etc.
|
||||
time_t mtime = atol(doc.dmtime.empty() ? doc.fmtime.c_str() :
|
||||
time_t mtime = atoll(doc.dmtime.empty() ? doc.fmtime.c_str() :
|
||||
doc.dmtime.c_str());
|
||||
struct tm *tm = localtime(&mtime);
|
||||
char buf[9];
|
||||
|
||||
Reference in New Issue
Block a user