This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch master
in repository 389-ds-base.
The following commit(s) were added to refs/heads/master by this push:
new e048503 Fix compiler warning in snmp main()
e048503 is described below
commit e0485033ec25c85f95129266dc9e3735b283abc7
Author: Mark Reynolds <mreynolds(a)redhat.com>
AuthorDate: Tue Jan 15 14:40:39 2019 -0500
Fix compiler warning in snmp main()
Reviewed by: mreynolds(one line commit rule)
---
ldap/servers/snmp/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ldap/servers/snmp/main.c b/ldap/servers/snmp/main.c
index 1e64705..ccfb9b8 100644
--- a/ldap/servers/snmp/main.c
+++ b/ldap/servers/snmp/main.c
@@ -295,7 +295,7 @@ load_config(char *conf_path)
/* set pidfile path */
if ((pidfile = malloc(strlen(LOCALSTATEDIR) + strlen("/run/") +
strlen(LDAP_AGENT_PIDFILE) + 1)) != NULL) {
- strncpy(pidfile, LOCALSTATEDIR, strlen(LOCALSTATEDIR));
+ strncpy(pidfile, LOCALSTATEDIR, strlen(LOCALSTATEDIR) + 1);
/* The above will likely not be NULL terminated, but we need to
* be sure that we're properly NULL terminated for the below
* strcat() to work properly. */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.