diff --git a/libretroshare/src/pqi/p3historymgr.cc b/libretroshare/src/pqi/p3historymgr.cc index 72a2640ec..39c2960a3 100644 --- a/libretroshare/src/pqi/p3historymgr.cc +++ b/libretroshare/src/pqi/p3historymgr.cc @@ -350,7 +350,7 @@ bool p3HistoryMgr::loadList(std::list& load) if (kit->key == "MAX_STORAGE_TIME") { uint32_t val ; - if (sscanf(kit->value.c_str(), "%d", &val) == 1) + if (sscanf(kit->value.c_str(), "%u", &val) == 1) mMaxStorageDurationSeconds = val ; #ifdef HISTMGR_DEBUG