[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: OpenLDAP-specific API

On Thu, 13 Mar 2003, Howard Chu wrote:

[ Good points, but understood anyway ]

> As programmers, you *should* care, and you should *know* what the code you
> work with does, and how it does it. That is my point.

And my point in turn was that if you're going to replace one call with
another one, at least try and not make the same mistake; there is no
place in any library for a routine that blindly copies data into an
unknown user-provided buffer.

Now, if you want to make it strncopy(char *dst, const char *src, size_t len)
then I'm with you (but I still doubt whether finding the end of a string
consumes a significant chunk of CPU time as you claim).

Dave Horsfall  DTM  VK2KFU  daveh@ci.com.au  Ph: +61 2 9906-7866  Fx: 9906-1556
Corinthian Engineering, Level 1, 401 Pacific Hwy, Artarmon, NSW 2064, Australia