From 43d532cfd3292282ccdae0bf6fbcb2056f67a419 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Sun, 19 Jul 2009 17:45:01 +0000 Subject: [PATCH] Minor tweak to xml ouput This commit was SVN r21713. --- orte/mca/iof/base/iof_base_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orte/mca/iof/base/iof_base_output.c b/orte/mca/iof/base/iof_base_output.c index 4ba3fec95e..dd62b1ded1 100644 --- a/orte/mca/iof/base/iof_base_output.c +++ b/orte/mca/iof/base/iof_base_output.c @@ -190,11 +190,11 @@ construct: } } else if (data[i] < 32) { /* 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); 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++) { output->data[k++] = qprint[j]; }