From dd912c697718e924387dd405413f94e481f8d0d4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 27 Aug 2002 03:56:35 +0000 Subject: This patches replaces a few more usages of strcpy() and sprintf() when copying into a fixed-size buffer (in this case, a buffer of NAMEDATALEN bytes). AFAICT nothing to worry about here, but worth fixing anyway... Neil Conway --- src/backend/utils/adt/sets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt/sets.c') diff --git a/src/backend/utils/adt/sets.c b/src/backend/utils/adt/sets.c index d4ba7a18050..2c0beb25e0d 100644 --- a/src/backend/utils/adt/sets.c +++ b/src/backend/utils/adt/sets.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/sets.c,v 1.51 2002/08/09 16:45:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/sets.c,v 1.52 2002/08/27 03:56:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -95,7 +95,7 @@ SetDefine(char *querystr, Oid elemType) if (strcmp(procname, NameStr(proc->proname)) == 0) { /* make the real proc name */ - sprintf(realprocname, "set%u", setoid); + snprintf(realprocname, sizeof(realprocname), "set%u", setoid); /* set up the attributes to be modified or kept the same */ repl[0] = 'r'; -- cgit v1.2.3