summaryrefslogtreecommitdiff
path: root/src/config_file.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-04-29 21:46:33 +0200
committernulltoken <emeric.fermas@gmail.com>2012-04-30 07:12:37 +0200
commitfa6420f73e8a621cc04e95820b625097b5c2fbf2 (patch)
treeb5107d76b205dfb9b475606bb284da05b01e2a79 /src/config_file.c
parent1d2dd864add4835c49744a566c226a1c7da04e99 (diff)
downloadlibgit2-fa6420f73e8a621cc04e95820b625097b5c2fbf2.tar.gz
buf: deploy git_buf_len()
Diffstat (limited to 'src/config_file.c')
-rw-r--r--src/config_file.c2
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) {