diff options
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r-- | src/backend/commands/cluster.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 30d251869bc..0c1a7d3c70c 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.106 2003/03/03 04:37:37 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.107 2003/03/20 03:34:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -405,7 +405,7 @@ rebuild_relation(Relation OldHeap, Oid indexOid) * namespace from the old, or we will have problems with the TEMP * status of temp tables. */ - snprintf(NewHeapName, NAMEDATALEN, "pg_temp_%u", tableOid); + snprintf(NewHeapName, sizeof(NewHeapName), "pg_temp_%u", tableOid); OIDNewHeap = make_new_heap(tableOid, NewHeapName); /* @@ -625,7 +625,8 @@ rebuild_indexes(Oid OIDOldHeap, List *indexes) Relation pg_index; /* Create the new index under a temporary name */ - snprintf(newIndexName, NAMEDATALEN, "pg_temp_%u", attrs->indexOID); + snprintf(newIndexName, sizeof(newIndexName), + "pg_temp_%u", attrs->indexOID); /* * The new index will have primary and constraint status set to |