forked from OSchip/llvm-project
Fixing a sanitizer lint problem that was breaking some builds.
This commit is contained in:
parent
affed19fc3
commit
93f7743851
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue