aboutsummaryrefslogtreecommitdiff
path: root/src/libmach/crackmacho.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmach/crackmacho.c')
-rw-r--r--src/libmach/crackmacho.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmach/crackmacho.c b/src/libmach/crackmacho.c
index c19d81e9..bb521fad 100644
--- a/src/libmach/crackmacho.c
+++ b/src/libmach/crackmacho.c
@@ -115,8 +115,8 @@ crackmacho(int fd, Fhdr *fp)
if(m->cmd[i].type == MachoCmdSymtab)
break;
if(i < m->ncmd){
- fp->stabs.stabbase = load(fp->fd, m->cmd[i].sym.symoff, m->cmd[i].sym.nsyms*16);
- fp->stabs.stabsize = m->cmd[i].sym.nsyms*16;
+ fp->stabs.stabbase = load(fp->fd, m->cmd[i].sym.symoff, m->cmd[i].sym.nsym*16);
+ fp->stabs.stabsize = m->cmd[i].sym.nsym*16;
fp->stabs.strbase = (char*)load(fp->fd, m->cmd[i].sym.stroff, m->cmd[i].sym.strsize);
if(fp->stabs.stabbase == nil || fp->stabs.strbase == nil){
fp->stabs.stabbase = nil;