From 07767d42ccd1a09fb78ccae6571d2a99a1d3b925 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 21 Nov 2021 22:20:28 +0100 Subject: Fixed some issue with getopt (for #170) --- src/emu/x64int3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu') diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index e8fc3ad7..86f1f0af 100755 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -103,7 +103,7 @@ void x64Int3(x64emu_t* emu) perr = 1; } else if (!strcmp(s, "fopen") || !strcmp(s, "fopen64")) { tmp = (char*)(R_RDI); - snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", %d)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (int)(R_ESI)); + snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", \"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (char*)(R_RSI)); perr = 2; } else if (!strcmp(s, "__openat64") || !strcmp(s, "openat64") || !strcmp(s, "__openat64_2")) { tmp = (char*)(R_RSI); -- cgit 1.4.1