Commit 8518088
blame.c: Properly initialize strbuf after calling textconv_object(), again
2564aa4 started to initialize buf.alloc, but that should actually be one
more byte than the string length due to the trailing \0. Also, do not
modify buf.alloc out of the strbuf code. Use the existing strbuf_attach
instead.
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 55e7c0a commit 8518088
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2077 | 2077 | | |
2078 | 2078 | | |
2079 | 2079 | | |
| 2080 | + | |
2080 | 2081 | | |
2081 | 2082 | | |
2082 | 2083 | | |
| |||
2094 | 2095 | | |
2095 | 2096 | | |
2096 | 2097 | | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
| 2098 | + | |
| 2099 | + | |
2101 | 2100 | | |
2102 | 2101 | | |
2103 | 2102 | | |
| |||
0 commit comments