Re: [HACKERS] version functions (was NT port of PGSQL - success)

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: jwieck@debis.com
Cc: jhickey@impact1.hpcc.nectec.or.th, pgsql-hackers@hub.org
Date: 1998-10-09T16:39:17Z
Lists: pgsql-hackers
>     No, it is still correct. The version function is there and it
>     returns the compiled in string from version.h.
> 
>     But take a look at version.c please. I think  it  should  use
>     memcpy()  or  strncpy()  instead of strcpy(). As it is now it
>     writes the null byte after the palloc'ed area.

Yes, thanks.  Fixed using StrNCpy().

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026