...
|
...
|
@@ -2452,7 +2452,7 @@ boundaryStart(const char *line, const char *boundary)
|
2452
|
2452
|
if (newline != line && strlen(line)) {
|
2453
|
2453
|
char *p;
|
2454
|
2454
|
/* Trim trailing spaces */
|
2455
|
|
- p = newline + strlen(line);
|
|
2455
|
+ p = newline + strlen(line) - 1;
|
2456
|
2456
|
while (p >= newline && *p == ' ')
|
2457
|
2457
|
*(p--) = '\0';
|
2458
|
2458
|
}
|
...
|
...
|
@@ -2575,7 +2575,7 @@ boundaryEnd(const char *line, const char *boundary)
|
2575
|
2575
|
|
2576
|
2576
|
if (newline != line && strlen(line)) {
|
2577
|
2577
|
/* Trim trailing spaces */
|
2578
|
|
- p2 = newline + strlen(line);
|
|
2578
|
+ p2 = newline + strlen(line) - 1;
|
2579
|
2579
|
while (p2 >= newline && *p2 == ' ')
|
2580
|
2580
|
*(p2--) = '\0';
|
2581
|
2581
|
}
|