Fix AppDB::GetKeys bug
authorSeungkeun Lee <sngn.lee@samsung.com>
Thu, 14 May 2015 00:57:10 +0000 (09:57 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Thu, 14 May 2015 00:57:10 +0000 (09:57 +0900)
Change-Id: I4d586af03d0b53eafc49336fb90afb131016dd5a

src/common/app_db.cc

index 322814a..b002b27 100755 (executable)
@@ -66,7 +66,7 @@ void PreferenceAppDB::GetKeys(const std::string& section,
   auto callback = [](const char* key, void *user_data) {
     auto list = static_cast<std::list<std::string>*>(user_data);
     if (utils::StartsWith(key, list->front())) {
-      list->push_back(key);
+      list->push_back(key+list->front().size());
     }
     return true;
   };