From edb58721b8f7fd76b5dfa3bf83c683f2e266abd3 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 12 Aug 1997 20:16:25 +0000 Subject: Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary. --- src/backend/commands/recipe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/recipe.c') diff --git a/src/backend/commands/recipe.c b/src/backend/commands/recipe.c index ed94f0c18e..e6aa009bd3 100644 --- a/src/backend/commands/recipe.c +++ b/src/backend/commands/recipe.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.5 1996/11/06 08:21:37 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.6 1997/08/12 20:15:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1149,8 +1149,7 @@ replaceTeeScans(Plan* plan, Query* parsetree, TeeInfo *teeInfo) if ((strlen(rte->refname) < 4) || (strcmp (rte->relname, rte->refname) != 0)) continue; - strncpy(prefix,rte->refname,4); - prefix[4] = '\0'; + strNcpy(prefix,rte->refname,4); if (strcmp(prefix,"tee_") == 0) { /* okay, we found a tee node entry in the range table */ -- cgit v1.2.1