diff options
author | Bruce Momjian | 1997-08-12 20:16:25 +0000 |
---|---|---|
committer | Bruce Momjian | 1997-08-12 20:16:25 +0000 |
commit | edb58721b8f7fd76b5dfa3bf83c683f2e266abd3 (patch) | |
tree | 4f1fe8679d97cb881fe3bcd6a46cf63a50cef1e8 /src/backend/tioga | |
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/tioga')
-rw-r--r-- | src/backend/tioga/tgRecipe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/tioga/tgRecipe.c b/src/backend/tioga/tgRecipe.c index e51a61b94d4..ef08f8e3f58 100644 --- a/src/backend/tioga/tgRecipe.c +++ b/src/backend/tioga/tgRecipe.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tioga/Attic/tgRecipe.c,v 1.2 1996/11/03 06:52:45 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/tioga/Attic/tgRecipe.c,v 1.3 1997/08/12 20:15:52 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -100,8 +100,7 @@ first character\n", ARRAY_LEFT_DELIM); nextlen = endQuote - beginQuote; /* don't subtract one here because we need the extra character for \0 anyway */ word = (char*) malloc(nextlen); - strncpy(word, beginQuote+1, nextlen-1); - word[nextlen-1] ='\0'; + strNcpy(word, beginQuote+1, nextlen-1); addArr_TgString(result, (TgString*)&word); free (word); str = endQuote + 1; |