Use thread-safe function 33/63833/1 accepted/tizen/common/20160329.050628 accepted/tizen/ivi/20160328.071339 accepted/tizen/mobile/20160328.071159 accepted/tizen/tv/20160328.071235 accepted/tizen/wearable/20160328.071310 submit/tizen/20160328.052318
authorMyungki Lee <mk5004.lee@samsung.com>
Mon, 28 Mar 2016 05:04:34 +0000 (14:04 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Mon, 28 Mar 2016 05:05:42 +0000 (14:05 +0900)
Change-Id: If3d7bbff9d3e5e6466851a473300a6205d51ff65
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/pkg_clearcache.c

index c6ff634d28efcbb202002de503b54bf1ca713fff..ba7f11063c541d4b21804667a273630186dccfe7 100644 (file)
@@ -90,7 +90,7 @@ static int __clear_dir(const char *dirname)
                                if (ret != 0) {
                                        LOGE("Couldn't remove the directory. "
                                                        "errno : %d (%s)\n",
-                                                       errno, strerror(errno));
+                                                       errno, strerror_r(errno, buf, sizeof(buf)));
                                        goto err;
                                }
                        }