There is still bunch of more problematic things related
to the C99 strict aliasing rules.
ul_dbuff_set_capacity(buf, new_cap);
}
if(new_len > buf->capacity) {
- buf->data = buf->sbuff;
- strncpy(buf->data, "set_len ERROR", buf->capacity);
+ /*buf->data = buf->sbuff;*/
+ /*strncpy(buf->data, "set_len ERROR", buf->capacity);*/
new_len = buf->capacity;
}
buf->len = new_len;