OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/docs/libxds.tex versions 1.11 and 1.12
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/docs/libxds.tex 1.11 -> 1.12

--- libxds.tex   2001/08/09 15:23:28     1.11
+++ libxds.tex   2001/08/09 15:25:57     1.12
@@ -1,6 +1,6 @@
 % -*- mode: LaTeX; fill-column: 75; -*-
 %
-% $Id: libxds.tex,v 1.11 2001/08/09 15:23:28 simons Exp $
+% $Id: libxds.tex,v 1.12 2001/08/09 15:25:57 simons Exp $
 %
 \documentclass[a4paper,10pt,pointlessnumbers,bibtotoc]{scrartcl}
 \usepackage[dvips,xdvi]{graphicx}
@@ -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);
         }

CVSTrac 2.0.1