Skip to content

Commit 338b68e

Browse files
committed
increase buffer size for logging
1 parent 5eb85bb commit 338b68e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/python-macos-launcher/src/venvlauncher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void debug(const char *format, ...) {
5858
if (!debug_enabled) return;
5959

6060
va_list va;
61-
char buffer[1024];
61+
char buffer[PATH_MAX * 2];
6262
va_start(va, format);
6363
int result = vsnprintf(buffer, sizeof(buffer), format, va);
6464
va_end(va);
@@ -159,7 +159,7 @@ char **split_venv_command_into_args(const char *venv_command, int *argc_out) {
159159
const int capacity = count_args(copy);
160160
char **args = malloc(capacity * sizeof(char *));
161161
if (!args) {
162-
fprintf(stderr, "allocation failed failed\n");
162+
fprintf(stderr, "allocation failed\n");
163163
free(copy);
164164
exit(1);
165165
}

0 commit comments

Comments
 (0)