aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-28 20:46:24 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-28 20:46:24 +0000
commit81dfa2ce4328c44201a70a9dc3517bd356698069 (patch)
treeec11b0649abcb6cd2b3cb6926ff4df21ac1e570d /src/backend/executor
parentf5fea0808f385677dccffa0b4dc0ffe512cb4199 (diff)
downloadpostgresql-81dfa2ce4328c44201a70a9dc3517bd356698069.tar.gz
postgresql-81dfa2ce4328c44201a70a9dc3517bd356698069.zip
backend where a statically sized buffer is written to. Most of these
should be pretty safe in practice, but it's probably better to be safe than sorry. I was actually looking for cases where NAMEDATALEN is assumed to be 32, but only found one. That's fixed too, as well as a few bits of code cleanup. Neil Conway
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/execMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 0b9bb86578a..7a6e1c69956 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -27,7 +27,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.174 2002/08/15 16:36:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.175 2002/08/28 20:46:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -545,7 +545,7 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate)
erm = (execRowMark *) palloc(sizeof(execRowMark));
erm->relation = relation;
erm->rti = rti;
- sprintf(erm->resname, "ctid%u", rti);
+ snprintf(erm->resname, 32, "ctid%u", rti);
estate->es_rowMark = lappend(estate->es_rowMark, erm);
}
}