Skip to content

Commit 5821f4a

Browse files
committed
Fix for readlink() not adding the null terminator
1 parent b37e4f9 commit 5821f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cibw-ompi-wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
int main(int argc, char *argv[]) {
2121

22-
char exe[PATH_MAX+32];
22+
char exe[PATH_MAX+32] = {0};
2323
char path[PATH_MAX+32];
2424
char prefix[PATH_MAX+32];
2525

0 commit comments

Comments
 (0)