Fix the simulator build broken by commit 5fe37c6838de9fbd959ad19ba44aa3d00d1b4e6f
Change-Id: Ibf6aebfec60cd7f807c3e49f0dbb5ab8e86bcdc1
diff --git a/media/libeffects/EffectsFactory.c b/media/libeffects/EffectsFactory.c
index 07c4d80..35a1001 100644
--- a/media/libeffects/EffectsFactory.c
+++ b/media/libeffects/EffectsFactory.c
@@ -18,6 +18,8 @@
//#define LOG_NDEBUG 0
#include "EffectsFactory.h"
+#include <string.h>
+#include <stdlib.h>
#include <dlfcn.h>
@@ -277,7 +279,7 @@
if (ret < 0) {
return ret;
}
- if (libPath == NULL || strnlen(libPath, PATH_MAX) >= PATH_MAX) {
+ if (libPath == NULL) {
return -EINVAL;
}
return loadLibrary(libPath, handle);