mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-18 03:44:28 +00:00
Fix write(0) in radiff2 -x
This commit is contained in:
parent
1b5a746786
commit
81f2f82cd3
@ -346,7 +346,7 @@ static void dump_cols(ut8 *a, int as, ut8 *b, int bs, int w) {
|
||||
if (as != bs) {
|
||||
r_cons_printf ("...\n");
|
||||
}
|
||||
r_cons_flush();
|
||||
r_cons_flush ();
|
||||
}
|
||||
|
||||
static void handle_sha256(const ut8 *block, int len) {
|
||||
|
@ -64,6 +64,9 @@ static inline void r_cons_write(const char *buf, int len) {
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (I.fdout < 1) {
|
||||
I.fdout = 1;
|
||||
}
|
||||
(void) write (I.fdout, buf, len);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user