diff options
author | Ron Yorston <rmy@pobox.com> | 2023-04-09 11:24:09 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-04-09 11:24:09 +0100 |
commit | d9f2ea8628452f787e02dd0e496af612a2e94578 (patch) | |
tree | c12be657e31c2e832b41fbff9a77aa0f886d47f0 /scripts/basic | |
parent | fa04f2dc766c76f2caa44a4b8429185dde6a66b0 (diff) | |
parent | a26711a2d1464167be4ebc990fe21a3809a2da34 (diff) | |
download | busybox-w32-d9f2ea8628452f787e02dd0e496af612a2e94578.tar.gz busybox-w32-d9f2ea8628452f787e02dd0e496af612a2e94578.tar.bz2 busybox-w32-d9f2ea8628452f787e02dd0e496af612a2e94578.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'scripts/basic')
-rw-r--r-- | scripts/basic/fixdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 64fd92f06..1ae25c919 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
@@ -394,7 +394,11 @@ void parse_dep_file(void *map, size_t len) | |||
394 | do p--; while (p != m && !isalnum((unsigned char)*p)); | 394 | do p--; while (p != m && !isalnum((unsigned char)*p)); |
395 | p++; | 395 | p++; |
396 | } | 396 | } |
397 | if (p == m) break; | 397 | if (p < m) { |
398 | /* we've consumed the last filename of this list | ||
399 | already. */ | ||
400 | break; | ||
401 | } | ||
398 | memcpy(s, m, p-m); s[p-m] = 0; | 402 | memcpy(s, m, p-m); s[p-m] = 0; |
399 | if (strrcmp(s, "include/autoconf.h") && | 403 | if (strrcmp(s, "include/autoconf.h") && |
400 | strrcmp(s, "arch/um/include/uml-config.h") && | 404 | strrcmp(s, "arch/um/include/uml-config.h") && |