Fix write(0) in radiff2 -x

This commit is contained in:
pancake 2017-05-10 22:28:11 +02:00
parent 1b5a746786
commit 81f2f82cd3
2 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

@ -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
}