Commit 3677e86f authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

textin fixed: no more zero-byte (thanks, Erich)

parent 59bb41a2
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.9 1997/01/08 08:38:59 bryanh Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.10 1997/01/16 03:53:51 vadim Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -165,7 +165,7 @@ textin(char *inputText)
if (inputText == NULL)
return(NULL);
len = strlen(inputText) + VARHDRSZ + 1;
len = strlen(inputText) + VARHDRSZ;
result = (struct varlena *) palloc(len);
VARSIZE(result) = len;
memmove(VARDATA(result), inputText, len - VARHDRSZ);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment