summaryrefslogtreecommitdiff
path: root/databases/postgresql-repmgr/files/patch-repmgr.c
blob: 380d8fe43059431279ddac4fec2cbe87be277e93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- repmgr.c.orig	2014-03-17 21:27:40.000000000 +0800
+++ repmgr.c	2014-05-24 17:55:10.996404127 +0800
@@ -1871,7 +1871,7 @@
 	char host_string[MAXLEN];
 	int	 r;
 
-	if (strnlen(options.rsync_options, MAXLEN) == 0)
+	if (strlen(options.rsync_options) == 0)
 		maxlen_snprintf(
 		    rsync_flags, "%s",
 		    "--archive --checksum --compress --progress --rsh=ssh");