mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
avoid usage of snprintf()
We have a nice little abstraction for snprintf with covering the case that a string is too big for the target buffer – let's use that!
This commit is contained in:
@@ -281,7 +281,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
snprintf(repmgr_schema, MAXLEN, "%s%s", DEFAULT_REPMGR_SCHEMA_PREFIX,
|
||||
xsnprintf(repmgr_schema, MAXLEN, "%s%s", DEFAULT_REPMGR_SCHEMA_PREFIX,
|
||||
local_options.cluster_name);
|
||||
|
||||
log_info(_("%s Connecting to database '%s'\n"), progname,
|
||||
|
||||
Reference in New Issue
Block a user