Spring cleaning
[platform/core/test/security-tests.git] / src / security-manager-tests / common / scoped_app_launcher.cpp
index bde5681..6861bab 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ ScopedAppLauncher::ScopedAppLauncher(const AppInstallHelper& app,
             RUNNER_ASSERT_ERRNO_MSG(setLauncherSecurityAttributes(app.getUID(), app.getGID()) == 0,
                                     "launcher failed");
             Api::prepareAppCandidate();
-            Api::prepareApp(app.getAppId().c_str());
+            Api::prepareApp(app.getAppId());
             runInAppContext();
         } catch (...) {
             m_syncPipe.post();