1
1

Minor mod per Greg Watson, plus some cleanups to make George smile...or at least grimace a little less! :-)

This commit was SVN r21309.
Этот коммит содержится в:
Ralph Castain 2009-05-28 00:55:01 +00:00
родитель 2f9765926e
Коммит 17485ca604

Просмотреть файл

@ -170,19 +170,38 @@ construct:
output->data[k++] = starttag[j];
}
}
} else if (orte_xml_output && '&' == data[i]) {
output->data[k++] = '&';
output->data[k++] = 'a';
output->data[k++] = 'm';
output->data[k++] = 'p';
} else if (orte_xml_output && '<' == data[i]) {
output->data[k++] = '&';
output->data[k++] = 'l';
output->data[k++] = 't';
} else if (orte_xml_output && '>' == data[i]) {
output->data[k++] = '&';
output->data[k++] = 'g';
output->data[k++] = 't';
} else if (orte_xml_output) {
if ('&' == data[i]) {
if (k+5 >= ORTE_IOF_BASE_TAGGED_OUT_MAX) {
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
goto process;
}
output->data[k++] = '&';
output->data[k++] = 'a';
output->data[k++] = 'm';
output->data[k++] = 'p';
output->data[k++] = ';';
} else if ('<' == data[i]) {
if (k+4 >= ORTE_IOF_BASE_TAGGED_OUT_MAX) {
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
goto process;
}
output->data[k++] = '&';
output->data[k++] = 'l';
output->data[k++] = 't';
output->data[k++] = ';';
} else if ('>' == data[i]) {
if (k+4 >= ORTE_IOF_BASE_TAGGED_OUT_MAX) {
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
goto process;
}
output->data[k++] = '&';
output->data[k++] = 'g';
output->data[k++] = 't';
output->data[k++] = ';';
} else {
output->data[k++] = data[i];
}
} else {
output->data[k++] = data[i];
}