On Fri, Oct 18, 2013 at 1:11 PM, Ruediger Pluem <[email protected]> wrote:
> [email protected] wrote: > > + if ((thelen < dlen-1) || (src[thelen] == '\0') { > > Can't this be reduced to just > > if (src[thelen] == '\0') { > > ? > Not if src and dlen are zero? IMHO the underflow (in the original code) should really be handled explicitly. > > Regards >
