Skip to content

Commit

Permalink
Fixing a sanitizer lint problem that was breaking some builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1961 committed Mar 26, 2020
1 parent affed19 commit 93f7743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/test/tsan/fiber_cleanup.cpp
Expand Up @@ -26,7 +26,7 @@
long count_memory_mappings() {
pid_t my_pid = getpid();
char proc_file_name[128];
snprintf(proc_file_name, 128, "/proc/%ld/maps", my_pid);
snprintf(proc_file_name, sizeof(proc_file_name), "/proc/%ld/maps", my_pid);

FILE *proc_file = fopen(proc_file_name, "r");
long line_count = 0;
Expand Down

0 comments on commit 93f7743

Please sign in to comment.