Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3438065

Browse files
author
Michael Meskes
committed
- Renamed my own strndup() function because of a name clash.
1 parent f604b39 commit 3438065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/ecpg/compatlib/informix.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ deccopy(decimal * src, decimal * target)
135135
}
136136

137137
static char *
138-
strndup(const char *str, size_t len)
138+
ecpg_strndup(const char *str, size_t len)
139139
{
140140
int real_len = strlen(str);
141141
int use_len = (real_len > len) ? len : real_len;
@@ -156,7 +156,7 @@ strndup(const char *str, size_t len)
156156
int
157157
deccvasc(char *cp, int len, decimal * np)
158158
{
159-
char *str = strndup(cp, len); /* decimal_in always converts the
159+
char *str = ecpg_strndup(cp, len); /* decimal_in always converts the
160160
* complete string */
161161
int ret = 0;
162162
numeric *result;

0 commit comments

Comments
 (0)