]> git.sur5r.net Git - openldap/commitdiff
EBCDIC fix - ber_pvt_strcopy is now lutil_strcopy
authorHoward Chu <hyc@openldap.org>
Fri, 25 Apr 2003 12:32:15 +0000 (12:32 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Apr 2003 12:32:15 +0000 (12:32 +0000)
libraries/liblber/stdio.c

index 99e0da4e11fbd0f22e7fd3f427a3b83b47f4c5ca..eaa8348d98b73b7fae357b6d17f7752d56ee0e64 100644 (file)
@@ -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;
 }