We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf6e03 commit dd23cebCopy full SHA for dd23ceb
tracewrap.c
@@ -43,7 +43,7 @@ static char target_path[PATH_MAX] = "unknown";
43
#define WRITE_BUF(x,n) do { \
44
if (!file) \
45
err(1, "qemu_trace is not initialized"); \
46
- if (fwrite((x),(n),1,file) != 1) \
+ if (fwrite((x),1,(n),file) != n) \
47
err(1, "fwrite failed"); \
48
} while(0)
49
0 commit comments