updated for version 7.0073
diff --git a/src/os_mac.c b/src/os_mac.c
index cc656f0..baab5a5 100644
--- a/src/os_mac.c
+++ b/src/os_mac.c
@@ -682,6 +682,7 @@
 	    && pw->pw_name != NULL && *(pw->pw_name) != NUL)
     {
 	STRNCPY(s, pw->pw_name, len);
+	s[len - 1] = NUL;
 	return OK;
     }
 #endif