diff options
author | Russell Belfer <rb@github.com> | 2013-07-01 21:20:38 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-01 21:20:38 +0400 |
commit | 278ce7468d3870bb18d69bd8177bae406d6cede4 (patch) | |
tree | 9e00f07d6d12ed41a35973f882703d1084842cbd /src/config_file.c | |
parent | c61300eda94eedb53f072fedbf1bb52be21ca221 (diff) |
Add helpful buffer shorten function
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 dec952115..2b0732a13 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -1395,7 +1395,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, git_buf_len(value) - 1); + git_buf_shorten(value, 1); proc_line = fixup_line(line, in_quotes); if (proc_line == NULL) { |