OSSP CVS Repository

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

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

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