OSSP CVS Repository

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

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);
         }

CVSTrac 2.0.1