Skip to content
Snippets Groups Projects
Commit 3438065e authored by Michael Meskes's avatar Michael Meskes
Browse files

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

parent f604b39c
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ deccopy(decimal * src, decimal * target)
}
static char *
strndup(const char *str, size_t len)
ecpg_strndup(const char *str, size_t len)
{
int real_len = strlen(str);
int use_len = (real_len > len) ? len : real_len;
......@@ -156,7 +156,7 @@ strndup(const char *str, size_t len)
int
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 */
int ret = 0;
numeric *result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment