Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/modutils/modutils-24.c

    r2859 r3232  
    6161#include "libbb.h"
    6262#include "modutils.h"
    63 #include <libgen.h>
    6463#include <sys/utsname.h>
    6564
     
    24452444
    24462445        /* Number of parameters */
     2446        min = max = 1;
    24472447        if (isdigit(*pinfo)) {
    2448             min = strtoul(pinfo, &pinfo, 10);
     2448            min = max = strtoul(pinfo, &pinfo, 10);
    24492449            if (*pinfo == '-')
    24502450                max = strtoul(pinfo + 1, &pinfo, 10);
    2451             else
    2452                 max = min;
    2453         } else
    2454             min = max = 1;
     2451        }
    24552452
    24562453        contents = f->sections[sym->secidx]->contents;
     
    24742471        n = 0;
    24752472        p = val;
    2476         while (*p != 0) {
     2473        while (*p) {
    24772474            char sv_ch;
    24782475            char *endp;
     
    24852482                len = strcspn(p, ",");
    24862483                sv_ch = p[len];
    2487                 p[len] = 0;
     2484                p[len] = '\0';
    24882485                obj_string_patch(f, sym->secidx,
    24892486                         loc - contents, p);
     
    24952492                len = strcspn(p, ",");
    24962493                sv_ch = p[len];
    2497                 p[len] = 0;
     2494                p[len] = '\0';
    24982495                if (len >= charssize)
    24992496                    bb_error_msg_and_die("string too long for %s (max %ld)", param,
Note: See TracChangeset for help on using the changeset viewer.