sysexec(): need () arround AOUT_MAGIC comparsion to handle #define hack on mips

This commit is contained in:
cinap_lenrek 2015-07-09 08:51:38 +02:00
parent e3217c6f6a
commit 3ca9ac70c4

View file

@ -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){