diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-17 20:20:24 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-17 20:20:24 +0200 |
| commit | 2f41e7ea5700aab61f32a1db97569f832563fbd8 (patch) | |
| tree | 27718bc88b201f0f917fd249a62e37b587413c5c /scripts/basic/split-include.c | |
| parent | 3324c963352392c00bda9eb77b815f0db9f6bdb7 (diff) | |
| download | busybox-w32-2f41e7ea5700aab61f32a1db97569f832563fbd8.tar.gz busybox-w32-2f41e7ea5700aab61f32a1db97569f832563fbd8.tar.bz2 busybox-w32-2f41e7ea5700aab61f32a1db97569f832563fbd8.zip | |
fix extra bogus files generation in include/config/*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/basic/split-include.c')
| -rw-r--r-- | scripts/basic/split-include.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c index 60934b5b1..e328788e2 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c | |||
| @@ -110,11 +110,12 @@ int main(int argc, const char * argv []) | |||
| 110 | 110 | ||
| 111 | if (line[0] != '#') | 111 | if (line[0] != '#') |
| 112 | continue; | 112 | continue; |
| 113 | if ((str_config = strstr(line, "CONFIG_")) == NULL) | 113 | if ((str_config = strstr(line, " CONFIG_")) == NULL) |
| 114 | continue; | 114 | continue; |
| 115 | 115 | ||
| 116 | /* Make the output file name. */ | 116 | /* We found #define CONFIG_foo or #undef CONFIG_foo. |
| 117 | str_config += sizeof("CONFIG_") - 1; | 117 | * Make the output file name. */ |
| 118 | str_config += sizeof(" CONFIG_") - 1; | ||
| 118 | for (itarget = 0; !isspace(str_config[itarget]); itarget++) | 119 | for (itarget = 0; !isspace(str_config[itarget]); itarget++) |
| 119 | { | 120 | { |
| 120 | int c = (unsigned char) str_config[itarget]; | 121 | int c = (unsigned char) str_config[itarget]; |
