aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tioga/tgRecipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tioga/tgRecipe.c')
-rw-r--r--src/backend/tioga/tgRecipe.c5
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;