Minor tweak to xml ouput
This commit was SVN r21713.
Этот коммит содержится в:
родитель
2f515c8357
Коммит
43d532cfd3
@ -190,11 +190,11 @@ construct:
|
|||||||
}
|
}
|
||||||
} else if (data[i] < 32) {
|
} else if (data[i] < 32) {
|
||||||
/* this is a non-printable character, so escape it too */
|
/* this is a non-printable character, so escape it too */
|
||||||
if (k+5 >= ORTE_IOF_BASE_TAGGED_OUT_MAX) {
|
if (k+6 >= ORTE_IOF_BASE_TAGGED_OUT_MAX) {
|
||||||
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
|
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
|
||||||
goto process;
|
goto process;
|
||||||
}
|
}
|
||||||
snprintf(qprint, 10, "&%02d;", (int)data[i]);
|
snprintf(qprint, 10, "&#%02d;", (int)data[i]);
|
||||||
for (j=0; j < (int)strlen(qprint) && k < ORTE_IOF_BASE_TAGGED_OUT_MAX; j++) {
|
for (j=0; j < (int)strlen(qprint) && k < ORTE_IOF_BASE_TAGGED_OUT_MAX; j++) {
|
||||||
output->data[k++] = qprint[j];
|
output->data[k++] = qprint[j];
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user