Fix #301 - Invalid size: 5 while disassembling x86 TE binary

This commit is contained in:
pancake 2013-11-02 12:14:39 +01:00
parent 567bccae92
commit 724630896b

View File

@ -184,7 +184,9 @@ R_API void r_mem_copyendian (ut8 *dest, const ut8 *orig, int size, int endian) {
dest[7] = buffer[0];
break;
default:
eprintf ("Invalid size: %d\n", size);
if (dest != orig)
memmove (dest, orig, size);
//eprintf ("Invalid endian copy of size: %d\n", size);
}
}