"config_file" is MAXPGPATH, not MAXLEN

The two values are the same anyway, so change is more for consistency.
This commit is contained in:
Ian Barwick
2018-05-22 17:19:55 +09:00
parent 2dfe1d18e9
commit 97d0cee259

View File

@@ -1734,7 +1734,7 @@ _populate_node_record(PGresult *res, t_node_info *node_info, int row)
strncpy(node_info->location, PQgetvalue(res, row, 7), MAXLEN);
node_info->priority = atoi(PQgetvalue(res, row, 8));
node_info->active = atobool(PQgetvalue(res, row, 9));
strncpy(node_info->config_file, PQgetvalue(res, row, 10), MAXLEN);
strncpy(node_info->config_file, PQgetvalue(res, row, 10), MAXPGPATH);
/* This won't normally be set */
strncpy(node_info->upstream_node_name, PQgetvalue(res, row, 11), MAXLEN);