diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-12 20:16:25 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-12 20:16:25 +0000 |
commit | edb58721b8f7fd76b5dfa3bf83c683f2e266abd3 (patch) | |
tree | 4f1fe8679d97cb881fe3bcd6a46cf63a50cef1e8 /src/backend/commands/recipe.c | |
parent | 4b851b1cfc629a9d3802aa5c22572593663f5fe0 (diff) |
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
Diffstat (limited to 'src/backend/commands/recipe.c')
-rw-r--r-- | src/backend/commands/recipe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/commands/recipe.c b/src/backend/commands/recipe.c index ed94f0c18ec..e6aa009bd33 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 */ |