summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/adk/depmaker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/adk/depmaker.c b/tools/adk/depmaker.c
index 21958ffae..b2c5d0706 100644
--- a/tools/adk/depmaker.c
+++ b/tools/adk/depmaker.c
@@ -157,7 +157,7 @@ int main() {
/* exclude manual maintained packages from package/Makefile */
if (!(strncmp(pkgdirp->d_name, "eglibc", 6) == 0) &&
!(strncmp(pkgdirp->d_name, "libc", 4) == 0) &&
- !(strncmp(pkgdirp->d_name, "libpthread", 10) == 0) &&
+ !(strncmp(pkgdirp->d_name, "libpthread", 10) == 0 && strlen(pkgdirp->d_name) == 10) &&
!(strncmp(pkgdirp->d_name, "uclibc++", 8) == 0) &&
!(strncmp(pkgdirp->d_name, "uclibc", 6) == 0) &&
!(strncmp(pkgdirp->d_name, "glibc", 5) == 0)) {