diff options
-rw-r--r-- | src/common/container.c | 2 | ||||
-rw-r--r-- | src/common/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/container.c b/src/common/container.c index 9bbb9730c6..54f041bac7 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -78,7 +78,7 @@ smartlist_ensure_capacity(smartlist_t *sl, int size) } sl->capacity = higher; sl->list = tor_reallocarray(sl->list, sizeof(void *), - ((size_t)sl->capacity)); + ((size_t)sl->capacity)); } } diff --git a/src/common/util.c b/src/common/util.c index d064aceae0..4029512978 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3393,7 +3393,7 @@ format_win_cmdline_argument(const char *arg) /* Allocate space for argument, quotes (if needed), and terminator */ formatted_arg = tor_calloc(sizeof(char), - (smartlist_len(arg_chars) + (need_quotes ? 2 : 0) + 1)); + (smartlist_len(arg_chars) + (need_quotes ? 2 : 0) + 1)); /* Add leading quote */ i=0; |