In article <20161102003956.35D12FBAE%cvs.NetBSD.org@localhost>, Paul Goyette <source-changes-d%NetBSD.org@localhost> wrote: >-=-=-=-=-=- > >+ /* Handle overflow */ >+ if ((size_t)count >= *len) { >+ *dest += *len - 1; >+ *len = 1; Why *len = 1 here? Shouldn't it be 0 since there is no more room left? christos