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 b2c5d0706..1f11f1724 100644
--- a/tools/adk/depmaker.c
+++ b/tools/adk/depmaker.c
@@ -156,7 +156,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, "libc", 4) == 0 && strlen(pkgdirp->d_name) == 4) &&
!(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) &&