1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Fix compilation on Cygwin.

This commit is contained in:
Peter Eisentraut
2003-05-22 17:20:44 +00:00
parent cef0652a3d
commit 6fabec242d
7 changed files with 12 additions and 13 deletions

View File

@ -55,7 +55,7 @@ deccopy(Numeric *src, Numeric *target)
}
static char *
strndup(char *str, int len)
strndup(const char *str, size_t len)
{
int real_len = strlen(str);
int use_len = (real_len > len) ? len : real_len;