diff options
author | comex | 2015-07-16 17:49:07 -0400 |
---|---|---|
committer | comex | 2015-07-16 17:49:07 -0400 |
commit | cd251948134b14e3034a0083bea9aeebf3d82512 (patch) | |
tree | 335c608ab3846bf9980e54e3c9d25fae590aaa1f /lib | |
parent | fix some build stuff (diff) | |
download | substitute-cd251948134b14e3034a0083bea9aeebf3d82512.tar.gz |
fix idiotic mistake from the <redacted> symbols commit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/darwin/find-syms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/darwin/find-syms.c b/lib/darwin/find-syms.c index 4c525ea..0205afe 100644 --- a/lib/darwin/find-syms.c +++ b/lib/darwin/find-syms.c @@ -246,7 +246,7 @@ ok2: ; size_t this_nsyms = type ? ncache_syms : syc.nsyms; /* This could be optimized for efficiency with a large number of * names... */ - for (uint32_t i = 0; i < syc.nsyms; i++) { + for (uint32_t i = 0; i < this_nsyms; i++) { const substitute_sym *sym = &this_symtab[i]; uint32_t strx = sym->n_un.n_strx; const char *name = strx == 0 ? "" : this_strtab + strx; |