summaryrefslogtreecommitdiff
path: root/databases/postgresql-repmgr/files/patch-strnlen
blob: 5590e542e2d7a2d4f3b84db966e95dc1a2a5279b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- config.orig.c	2011-03-09 23:27:29.000000000 +0300
+++ config.c	2011-09-30 08:30:35.000000000 +0400
@@ -77,7 +77,7 @@
 	fclose (fp);
 
 	/* Check config settings */
-	if (strnlen(options->cluster_name, MAXLEN)==0)
+	if (strlen(options->cluster_name)==0)
 	{
 		fprintf(stderr, "Cluster name is missing. "
 		        "Check the configuration file.\n");
diff -ru /var/tmp/usr/ports/databases/postgresql-repmgr/work/repmgr-1.1.0/repmgr.c /var/tmp/usr/ports/databases/postgresql-repmgr/work/repmgr-1.1.0.patched/repmgr.c
--- repmgr.orig.c	2011-03-09 23:27:29.000000000 +0300
+++ repmgr.c	2011-09-30 08:30:19.000000000 +0400
@@ -1438,7 +1438,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");