Skip to content

Commit 9bb2035

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
mingw: allow for longer paths in parse_interpreter()
As reported in newren/git-filter-repo#225, it looks like 99 bytes is not really sufficient to represent e.g. the full path to Python when installed via Windows Store (and this path is used in the hasb bang line when installing scripts via `pip`). Let's increase it to what is probably the maximum sensible path size: 248 (the same as for `CreateDirectory()`). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 83a5c15 commit 9bb2035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ static const char *quote_arg_msys2(const char *arg)
14831483

14841484
static const char *parse_interpreter(const char *cmd)
14851485
{
1486-
static char buf[100];
1486+
static char buf[248];
14871487
char *p, *opt;
14881488
int n, fd;
14891489

0 commit comments

Comments
 (0)