Index: ossp-pkg/xds/docs/extended.c RCS File: /v/ossp/cvs/ossp-pkg/xds/docs/extended.c,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/xds/docs/extended.c,v' 2>/dev/null --- extended.c 2001/08/09 15:25:57 1.2 +++ extended.c 2001/08/09 15:29:58 1.3 @@ -35,12 +35,10 @@ &tmp, &i); if (rc == XDS_OK) { - if (i != sizeof(ms->text)) - { - free(tmp); - return XDS_ERR_TYPE_MISMATCH; - } - memmove(ms->text, tmp, i); + if (i == sizeof(ms->text)) + memmove(ms->text, tmp, i); + else + rc = XDS_ERR_TYPE_MISMATCH; free(tmp); } return rc; Index: ossp-pkg/xds/docs/libxds.tex RCS File: /v/ossp/cvs/ossp-pkg/xds/docs/libxds.tex,v rcsdiff -q -kk '-r1.12' '-r1.13' -u '/v/ossp/cvs/ossp-pkg/xds/docs/libxds.tex,v' 2>/dev/null --- libxds.tex 2001/08/09 15:25:57 1.12 +++ libxds.tex 2001/08/09 15:29:58 1.13 @@ -709,12 +709,10 @@ &tmp, &i); if (rc == XDS_OK) { - if (i != sizeof(ms->text)) - { - free(tmp); - return XDS_ERR_TYPE_MISMATCH; - } - memmove(ms->text, tmp, i); + if (i == sizeof(ms->text)) + memmove(ms->text, tmp, i); + else + rc = XDS_ERR_TYPE_MISMATCH; free(tmp); } return rc;