From: Howard Chu Date: Fri, 25 Apr 2003 12:32:15 +0000 (+0000) Subject: EBCDIC fix - ber_pvt_strcopy is now lutil_strcopy X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~240 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=deea8db4cd1a397c8adb73102548116badbfb72f;p=openldap EBCDIC fix - ber_pvt_strcopy is now lutil_strcopy --- diff --git a/libraries/liblber/stdio.c b/libraries/liblber/stdio.c index 99e0da4e11..eaa8348d98 100644 --- a/libraries/liblber/stdio.c +++ b/libraries/liblber/stdio.c @@ -138,7 +138,7 @@ int ber_pvt_vsnprintf( char *str, size_t n, const char *fmt, va_list ap ) if (rem < 1) return -1; if (rem < len) len = rem; } - s2 = ber_pvt_strncopy( s2, ptr, len ); + s2 = lutil_strncopy( s2, ptr, len ); /* Did we cheat the length above? If so, bail out */ if (len < pct-ptr) return -1; for (pct++, f2 = fm2+1; isdigit(*pct);) *f2++ = *pct++; @@ -173,12 +173,12 @@ int ber_pvt_vsnprintf( char *str, size_t n, const char *fmt, va_list ap ) rem = end-s2; if (rem > 0) { len = strlen(ptr); - s2 = ber_pvt_strncopy( s2, ptr, rem ); + s2 = lutil_strncopy( s2, ptr, rem ); rem -= len; } if (rem < 0) return -1; } else { - s2 = ber_pvt_strcopy( s2, ptr ); + s2 = lutil_strcopy( s2, ptr ); } return s2 - str; }