diff options
| author | Russell Belfer <rb@github.com> | 2013-12-11 16:56:17 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-12-11 16:56:17 -0800 |
| commit | 7e3ed419593a2dc9fae3bd69fdf172de015d79d9 (patch) | |
| tree | b48a9d0bd341a311eed787a65aa442452bfef518 /src/path.c | |
| parent | 7697e54176ccab22ed6d4597d7256e9a1e6ff202 (diff) | |
| download | libgit2-7e3ed419593a2dc9fae3bd69fdf172de015d79d9.tar.gz | |
Fix up some valgrind leaks and warnings
Diffstat (limited to 'src/path.c')
| -rw-r--r-- | src/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c index 365bd6c00..feb273915 100644 --- a/src/path.c +++ b/src/path.c @@ -784,7 +784,7 @@ int git_path_iconv(git_path_iconv_t *ic, char **in, size_t *inlen) return 0; while (1) { - if (git_buf_grow(&ic->buf, wantlen) < 0) + if (git_buf_grow(&ic->buf, wantlen + 1) < 0) return -1; nfc = ic->buf.ptr + ic->buf.size; |
