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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy