diff options
| -rw-r--r-- | miasm/tools/emul_lib/libcodenat_interface.c | 2 | ||||
| -rw-r--r-- | miasm/tools/emul_lib/libcodenat_tcc.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/miasm/tools/emul_lib/libcodenat_interface.c b/miasm/tools/emul_lib/libcodenat_interface.c index e8a66735..17910a09 100644 --- a/miasm/tools/emul_lib/libcodenat_interface.c +++ b/miasm/tools/emul_lib/libcodenat_interface.c @@ -379,7 +379,7 @@ PyObject* _vm_set_mem(PyObject *addr, PyObject *item_str) buf_size = PyString_Size(item_str); PyString_AsStringAndSize(item_str, &buf_data, &length); - printf("set addr: %X (len %x)\n", val, length); + printf("set addr: %X (len %X)\n", val, (unsigned int)length); mpn = get_memory_page_from_address(val); memcpy(mpn->ad_hp + (val-mpn->ad), buf_data, buf_size); diff --git a/miasm/tools/emul_lib/libcodenat_tcc.c b/miasm/tools/emul_lib/libcodenat_tcc.c index c562cc43..60f00566 100644 --- a/miasm/tools/emul_lib/libcodenat_tcc.c +++ b/miasm/tools/emul_lib/libcodenat_tcc.c @@ -54,10 +54,8 @@ void tcc_init_state(void) } tcc_set_output_type(tcc_state, TCC_OUTPUT_MEMORY); - tcc_add_include_path(tcc_state, "/usr/lib/tcc/include"); tcc_add_include_path(tcc_state, emul_libpython_dir); tcc_add_include_path(tcc_state, emul_lib_dir); - tcc_add_library_path(tcc_state, emul_lib_dir); tcc_add_file(tcc_state, emul_lib_path); } |