ossp-pkg/xds/docs/extended.c 1.1 -> 1.2
--- 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);
}
|
|