fix extra bogus files generation in include/config/*

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-06-17 20:20:24 +02:00
parent 3324c96335
commit 2f41e7ea57
2 changed files with 13 additions and 7 deletions

View file

@ -110,11 +110,12 @@ int main(int argc, const char * argv [])
if (line[0] != '#')
continue;
if ((str_config = strstr(line, "CONFIG_")) == NULL)
if ((str_config = strstr(line, " CONFIG_")) == NULL)
continue;
/* Make the output file name. */
str_config += sizeof("CONFIG_") - 1;
/* We found #define CONFIG_foo or #undef CONFIG_foo.
* Make the output file name. */
str_config += sizeof(" CONFIG_") - 1;
for (itarget = 0; !isspace(str_config[itarget]); itarget++)
{
int c = (unsigned char) str_config[itarget];