appending zero bytes to an empty array failed it
This commit is contained in:
parent
884e0b09b8
commit
6fdd2a9078
1
CHANGES
1
CHANGES
@ -17,6 +17,7 @@
|
|||||||
add support for Solaris /dev/poll
|
add support for Solaris /dev/poll
|
||||||
add lose32 support (broken, please don't use!)
|
add lose32 support (broken, please don't use!)
|
||||||
head -1 -> head -n 1
|
head -1 -> head -n 1
|
||||||
|
apending 0 bytes to an empty array would fail it
|
||||||
|
|
||||||
0.16:
|
0.16:
|
||||||
add buffer_fromsa (make buffer from stralloc)
|
add buffer_fromsa (make buffer from stralloc)
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
void array_catb(array* to,const char* from,uint64 len) {
|
void array_catb(array* to,const char* from,uint64 len) {
|
||||||
long l;
|
long l;
|
||||||
|
if (!len) return;
|
||||||
if (to->allocated<0) return;
|
if (to->allocated<0) return;
|
||||||
if (to->initialized+len<to->initialized) {
|
if (to->initialized+len<to->initialized) {
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user