Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/scripts/basic/split-include.c

    r1765 r2725  
    111111    if (line[0] != '#')
    112112        continue;
    113     if ((str_config = strstr(line, "CONFIG_")) == NULL)
     113    if ((str_config = strstr(line, " CONFIG_")) == NULL)
    114114        continue;
    115115
    116     /* Make the output file name. */
    117     str_config += sizeof("CONFIG_") - 1;
     116    /* We found #define CONFIG_foo or #undef CONFIG_foo.
     117     * Make the output file name. */
     118    str_config += sizeof(" CONFIG_") - 1;
    118119    for (itarget = 0; !isspace(str_config[itarget]); itarget++)
    119120    {
     
    155156
    156157        /* Write the file. */
    157         if ((fp_target = fopen(ptarget, "w" )) == NULL)
     158        if ((fp_target = fopen(ptarget,  "w")) == NULL)
    158159        ERROR_EXIT(ptarget);
    159160        fputs(line, fp_target);
Note: See TracChangeset for help on using the changeset viewer.