Branch: Tag:

2016-01-09

2016-01-09 22:39:59 by Martin Nilsson <nilsson@fastmail.com>

No need to copy null from the original string, as a new null character will be inserted.

1587:   {    char * s = NULL;    size_t nbytes = (size_t)(size+1) << a->size_shift; -  size_t obytes = (size_t)(a->len+1) << a->size_shift; +  size_t obytes = (size_t)a->len << a->size_shift;       if( size < a->len && size-a->len<(signed)sizeof(void*) )    goto done;