Skip to content

Commit 4e13026

Browse files
(test on ci) Revert "strbuf: fix incorrect alloc size in strbuf_reencode()"
Check if bugfix is needed Signed-off-by: Vaidas Pilkauskas <vaidas.pilkauskas@shopify.com> This reverts commit 145fd04.
1 parent 8ef6f0f commit 4e13026

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

strbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ int strbuf_reencode(struct strbuf *sb, const char *from, const char *to)
168168
if (!out)
169169
return -1;
170170

171-
strbuf_attach(sb, out, len, len + 1);
171+
strbuf_attach(sb, out, len, len);
172172
return 0;
173173
}
174174

0 commit comments

Comments
 (0)