diff options
Diffstat (limited to 'libical/src/libical/icalmemory.c')
-rw-r--r-- | libical/src/libical/icalmemory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libical/src/libical/icalmemory.c b/libical/src/libical/icalmemory.c index e89451fbce..35544b14ee 100644 --- a/libical/src/libical/icalmemory.c +++ b/libical/src/libical/icalmemory.c @@ -184,7 +184,7 @@ icalmemory_append_string(char** buf, char** pos, size_t* buf_size, data_length = (size_t)*pos - (size_t)*buf; final_length = data_length + string_length; - if ( final_length > (size_t) *buf_size ) { + if ( final_length >= (size_t) *buf_size) { *buf_size = (*buf_size) * 2 + final_length; |