Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/modutils/modutils-24.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/modutils/modutils-24.c
r2859 r3232 61 61 #include "libbb.h" 62 62 #include "modutils.h" 63 #include <libgen.h>64 63 #include <sys/utsname.h> 65 64 … … 2445 2444 2446 2445 /* Number of parameters */ 2446 min = max = 1; 2447 2447 if (isdigit(*pinfo)) { 2448 min = strtoul(pinfo, &pinfo, 10);2448 min = max = strtoul(pinfo, &pinfo, 10); 2449 2449 if (*pinfo == '-') 2450 2450 max = strtoul(pinfo + 1, &pinfo, 10); 2451 else 2452 max = min; 2453 } else 2454 min = max = 1; 2451 } 2455 2452 2456 2453 contents = f->sections[sym->secidx]->contents; … … 2474 2471 n = 0; 2475 2472 p = val; 2476 while (*p != 0) {2473 while (*p) { 2477 2474 char sv_ch; 2478 2475 char *endp; … … 2485 2482 len = strcspn(p, ","); 2486 2483 sv_ch = p[len]; 2487 p[len] = 0;2484 p[len] = '\0'; 2488 2485 obj_string_patch(f, sym->secidx, 2489 2486 loc - contents, p); … … 2495 2492 len = strcspn(p, ","); 2496 2493 sv_ch = p[len]; 2497 p[len] = 0;2494 p[len] = '\0'; 2498 2495 if (len >= charssize) 2499 2496 bb_error_msg_and_die("string too long for %s (max %ld)", param,
Note:
See TracChangeset
for help on using the changeset viewer.