From ed2dc666ba5b7dd384b8796a47b0e5a81ed5d069 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Thu, 11 May 2023 12:59:46 +1000 Subject: [PATCH v1] Remove redundant strlen --- src/bin/pg_upgrade/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_upgrade/info.c b/src/bin/pg_upgrade/info.c index 85ed15a..bf3244f 100644 --- a/src/bin/pg_upgrade/info.c +++ b/src/bin/pg_upgrade/info.c @@ -458,7 +458,7 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo) * output, so we have to copy that system table. It's easiest to do that * by treating it as a user table. */ - snprintf(query + strlen(query), sizeof(query) - strlen(query), + snprintf(query, sizeof(query), "WITH regular_heap (reloid, indtable, toastheap) AS ( " " SELECT c.oid, 0::oid, 0::oid " " FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n " -- 1.8.3.1