More compiler fixes
---
 src/imm/common/immpbe_dump.cc    | 2 +-
 src/plm/plmcd/plmc_read_config.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/imm/common/immpbe_dump.cc b/src/imm/common/immpbe_dump.cc
index 3bde78a3f..175bd0484 100644
--- a/src/imm/common/immpbe_dump.cc
+++ b/src/imm/common/immpbe_dump.cc
@@ -979,7 +979,7 @@ void *pbeRepositoryInit(const char *filePath, bool create,
       exit(1);
     }
   }
-  TRACE("TMP DIR:%s", localTmpDir);
+  TRACE("TMP DIR:%s", localTmpDir ? localTmpDir : "n/a");
   if (localTmpDir) {
     TRACE("IMMSV_PBE_TMP_DIR:%s", localTmpDir);
     localTmpFilename.append(localTmpDir);
diff --git a/src/plm/plmcd/plmc_read_config.c b/src/plm/plmcd/plmc_read_config.c
index acda7c72e..30daa1815 100644
--- a/src/plm/plmcd/plmc_read_config.c
+++ b/src/plm/plmcd/plmc_read_config.c
@@ -42,7 +42,7 @@ static int checkfile(char *buf)
        int ii;
        char cmd[PLMC_MAX_TAG_LEN];
 
-       strncpy(cmd, buf, PLMC_MAX_TAG_LEN - 1);
+       strncpy(cmd, buf, PLMC_MAX_TAG_LEN);
        for (ii = 0; ii < strlen(cmd); ii++)
                if (cmd[ii] == ' ')
                        cmd[ii] = '\0';
-- 
2.21.1


-----------------------------------------------------------------------------------------------------------------------
Notice: This e-mail together with any attachments may contain information of 
Ribbon Communications Inc. that
is confidential and/or proprietary for the sole use of the intended recipient.  
Any review, disclosure, reliance or
distribution by others or forwarding without express permission is strictly 
prohibited.  If you are not the intended
recipient, please notify the sender immediately and then delete all copies, 
including any attachments.
-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to