1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

- Renamed my own strndup() function because of a name clash.

This commit is contained in:
Michael Meskes
2003-09-20 09:10:50 +00:00
parent f604b39c2f
commit 3438065eed

View File

@ -135,7 +135,7 @@ deccopy(decimal * src, decimal * target)
} }
static char * static char *
strndup(const char *str, size_t len) ecpg_strndup(const char *str, size_t len)
{ {
int real_len = strlen(str); int real_len = strlen(str);
int use_len = (real_len > len) ? len : real_len; int use_len = (real_len > len) ? len : real_len;
@ -156,7 +156,7 @@ strndup(const char *str, size_t len)
int int
deccvasc(char *cp, int len, decimal * np) deccvasc(char *cp, int len, decimal * np)
{ {
char *str = strndup(cp, len); /* decimal_in always converts the char *str = ecpg_strndup(cp, len); /* decimal_in always converts the
* complete string */ * complete string */
int ret = 0; int ret = 0;
numeric *result; numeric *result;