Fixing a sanitizer lint problem that was breaking some builds.

This commit is contained in:
Wolfgang 2020-03-25 18:15:17 -07:00
parent affed19fc3
commit 93f7743851
1 changed files with 1 additions and 1 deletions

View File

@ -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;