Commit d1c13010 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Version string was truncating the last character.

Use memcpy() rather than StrNCpy() which had forced a string termination
 character at the end.
parent 5763683c
......@@ -5,7 +5,7 @@
*
* IDENTIFICATION
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.5 1999/02/13 23:19:36 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.6 1999/04/06 15:35:36 thomas Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -25,7 +25,7 @@ version(void)
text *ret = (text *) palloc(n);
VARSIZE(ret) = n;
StrNCpy(VARDATA(ret), PG_VERSION_STR, strlen(PG_VERSION_STR));
memcpy(VARDATA(ret), PG_VERSION_STR, strlen(PG_VERSION_STR));
return ret;
}
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