aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib/informix.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-05-22 17:20:44 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-05-22 17:20:44 +0000
commit6fabec242d91e655091ce1428fb717f36b82929b (patch)
treee7663302eb9429c2882b190d1095aa7d310287c5 /src/interfaces/ecpg/compatlib/informix.c
parentcef0652a3d88baeca25459902657c94c1e360682 (diff)
downloadpostgresql-6fabec242d91e655091ce1428fb717f36b82929b.tar.gz
postgresql-6fabec242d91e655091ce1428fb717f36b82929b.zip
Fix compilation on Cygwin.
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index 27d2f9acd79..078cc1b2959 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -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;