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