From 65934ab40dfba9be3c0d6cb535f4243e25920711 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 3 Jun 2020 14:22:28 -0400 Subject: Use correct struct member (#41) --- lib/relocation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/relocation.c') diff --git a/lib/relocation.c b/lib/relocation.c index a14c8e4..a0ba6a6 100644 --- a/lib/relocation.c +++ b/lib/relocation.c @@ -314,7 +314,7 @@ int prefixes_write(const char *output_file, int mode, char **prefix, const char fprintf(SYSERROR); return -1; } - for (size_t i = 0; i < fsdata->record; i++) { + for (size_t i = 0; i < fsdata->num_records; i++) { if (S_ISDIR(fsdata->record[i]->st->st_mode)) { continue; } -- cgit