OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/docs/extended.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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;

CVSTrac 2.0.1