diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-09 08:51:38 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-09 08:51:38 +0200 |
commit | 3ca9ac70c4f41ff57617d4cfcf46caa304db9a01 (patch) | |
tree | 758192407b1d6826f6d030e61c8ad99acc0425ea /sys/src/9/port/sysproc.c | |
parent | e3217c6f6a406d866238ce19bbb6d1aae17a71af (diff) |
sysexec(): need () arround AOUT_MAGIC comparsion to handle #define hack on mips
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index 1cbfdf216..edd3f86f0 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -281,7 +281,7 @@ sysexec(va_list list) if(n <= 2) error(Ebadexec); magic = l2be(exec.magic); - if(n == sizeof(Exec) && magic == AOUT_MAGIC){ + if(n == sizeof(Exec) && (magic == AOUT_MAGIC)){ text = l2be(exec.text); entry = l2be(exec.entry); switch(magic){ |