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