0001-replace-deprecated-index-by-strchr.patch
lasso/xml/tools.c | ||
---|---|---|
2504 | 2504 |
list = ""; |
2505 | 2505 | |
2506 | 2506 |
for (fp = from; *fp; fp++) { |
2507 |
if (isalnum(*fp) || index("._~-", *fp) || index(list, *fp))
|
|
2507 |
if (isalnum(*fp) || strchr("._~-", *fp) || strchr(list, *fp))
|
|
2508 | 2508 |
len++; |
2509 | 2509 |
else |
2510 | 2510 |
len += 3; |
... | ... | |
2514 | 2514 |
ri = 0; |
2515 | 2515 | |
2516 | 2516 |
for (fp = from; *fp; fp++) { |
2517 |
if (isalnum(*fp) || index("._~-", *fp) || index(list, *fp)) {
|
|
2517 |
if (isalnum(*fp) || strchr("._~-", *fp) || strchr(list, *fp)) {
|
|
2518 | 2518 |
result[ri++] = *fp; |
2519 | 2519 |
} else { |
2520 | 2520 |
int msb = (*fp & 0xf0) >> 4; |
2521 |
- |