diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-04-29 21:46:33 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-04-30 07:12:37 +0200 |
| commit | fa6420f73e8a621cc04e95820b625097b5c2fbf2 (patch) | |
| tree | b5107d76b205dfb9b475606bb284da05b01e2a79 /src/config_file.c | |
| parent | 1d2dd864add4835c49744a566c226a1c7da04e99 (diff) | |
| download | libgit2-fa6420f73e8a621cc04e95820b625097b5c2fbf2.tar.gz | |
buf: deploy git_buf_len()
Diffstat (limited to 'src/config_file.c')
| -rw-r--r-- | src/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c index 7841ea00f..be0977475 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -1233,7 +1233,7 @@ static int parse_multiline_variable(diskfile_backend *cfg, git_buf *value, int i * standard, this character **has** to be last one in the buf, with * no whitespace after it */ assert(is_multiline_var(value->ptr)); - git_buf_truncate(value, value->size - 1); + git_buf_truncate(value, git_buf_len(value) - 1); proc_line = fixup_line(line, in_quotes); if (proc_line == NULL) { |
