Index: /branches/eam_branches/ipp-20220316/psLib/src/sys/psString.c
===================================================================
--- /branches/eam_branches/ipp-20220316/psLib/src/sys/psString.c	(revision 42345)
+++ /branches/eam_branches/ipp-20220316/psLib/src/sys/psString.c	(revision 42346)
@@ -41,4 +41,20 @@
 
 
+// gcc (Ubuntu 20.04) complains when strncpy is used to copy a fraction of a buffer,
+// potentially skipping the ending NULL.  To avoid the error, manually copy
+// and (to ensure the buffer ends in a NULL) set the last + 1 byte to NUL: 
+// WARNING : len(dest) must be >= n + 1
+char *ps_strncpy_nowarn (char *dest, const char *src, size_t n) {
+
+  size_t i;
+  
+  char *d = dest;
+  char *s = (char *) src;
+  for (i = 0; i < n && *s != 0; i++, d++, s++) { *d = *s; }
+  for ( ; i <= n; i++, d++) { *d = 0; }
+  
+  return dest;
+}
+
 psString p_psStringAlloc(const char *file,
                          unsigned int lineno,
Index: /branches/eam_branches/ipp-20220316/psLib/src/sys/psString.h
===================================================================
--- /branches/eam_branches/ipp-20220316/psLib/src/sys/psString.h	(revision 42345)
+++ /branches/eam_branches/ipp-20220316/psLib/src/sys/psString.h	(revision 42346)
@@ -48,4 +48,6 @@
 void psNOOP (void);
 
+char *ps_strncpy_nowarn (char *dest, const char *src, size_t n);
+
 // some constants to use in snprintf statements and variable definitions to ensure
 // consistency
Index: /branches/eam_branches/ipp-20220316/psLib/src/sys/psTrace.c
===================================================================
--- /branches/eam_branches/ipp-20220316/psLib/src/sys/psTrace.c	(revision 42345)
+++ /branches/eam_branches/ipp-20220316/psLib/src/sys/psTrace.c	(revision 42346)
@@ -213,5 +213,5 @@
     }
 
-    strncpy(name, addNodeName, MAX_COMPONENT_LENGTH);
+    ps_strncpy_nowarn(name, addNodeName, MAX_COMPONENT_LENGTH);
     char *pname = name+1;               // Take off the period
     // Iterate through the components of addNodeName.  Strip off the first
