OSSP CVS Repository

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

ossp-pkg/rc/rc_file.c 1.2 -> 1.3

--- rc_file.c    2003/06/26 18:45:14     1.2
+++ rc_file.c    2003/06/27 14:26:13     1.3
@@ -316,6 +316,8 @@
 {
     int nIter = 0;
 
+    assert(pRcf && szSec);
+
     /* Return the section if it is found */
     for (nIter = 0; nIter < pRcf->m_nSecs; nIter++) {
         if (!strcmp(pRcf->m_ppSecvec[nIter]->m_szName, szSec))
@@ -362,7 +364,7 @@
 
     /* Deep copy of section text */
     if (scriptGetdata(pInsec->m_pData))
-        scriptSetdata(pRcfile->m_ppSecvec[pRcfile->m_nSecs]->m_pData, pInsec->m_pData);
+        scriptSetdata(pRcfile->m_ppSecvec[pRcfile->m_nSecs]->m_pData, scriptGetdata(pInsec->m_pData));
 
     return(RC_THROW(RC_OK));
 }

CVSTrac 2.0.1