diff options
Diffstat (limited to 'sldns/sbuffer.h')
| -rw-r--r-- | sldns/sbuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sldns/sbuffer.h b/sldns/sbuffer.h index 2c30b3736708..2241640ddb12 100644 --- a/sldns/sbuffer.h +++ b/sldns/sbuffer.h @@ -130,7 +130,7 @@ struct sldns_buffer /** If the buffer is fixed it cannot be resized */ unsigned _fixed : 1; - /** If the buffer is vfixed, no more than capacity bytes willl be + /** If the buffer is vfixed, no more than capacity bytes will be * written to _data, however the _position counter will be updated * with the amount that would have been written in consecutive * writes. This allows for a modus operandi in which a sequence is @@ -160,7 +160,7 @@ sldns_buffer_invariant(sldns_buffer *buffer) assert(buffer != NULL); assert(buffer->_position <= buffer->_limit || buffer->_vfixed); assert(buffer->_limit <= buffer->_capacity); - assert(buffer->_data != NULL || (buffer->_vfixed && buffer->_capacity == 0)); + assert(buffer->_data != NULL || (buffer->_vfixed && buffer->_capacity == 0 && buffer->_limit == 0)); } #endif |
