Skip to content

Commit 31741af

Browse files
committed
fixup! mingw: Support git_terminal_prompt with more terminals
Use strbuf_reset() instead of strbuf_setlen(..., 0). Signed-off-by: Karsten Blees <[email protected]>
1 parent 2b4d90f commit 31741af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/terminal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static char *xterm_prompt(const char *prompt, int echo)
129129
}
130130
close(child.in);
131131

132-
strbuf_setlen(&buffer, 0);
132+
strbuf_reset(&buffer);
133133
len = strbuf_read(&buffer, child.out, 1024);
134134
close(child.out);
135135
if (len < 0) {

0 commit comments

Comments
 (0)