mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
Fix for windows stdin input
This commit is contained in:
parent
a411b06b59
commit
f5dec28846
@ -343,7 +343,7 @@ static int rax (char *str, int len, int last) {
|
||||
}
|
||||
|
||||
static int use_stdin () {
|
||||
static char buf[STDIN_BUFFER_SIZE];
|
||||
char * buf = malloc (STDIN_BUFFER_SIZE);
|
||||
int l, sflag = (flags & 5);
|
||||
if (! (flags & 16384)) {
|
||||
for (l=0; l>=0; l++) {
|
||||
@ -366,6 +366,7 @@ static int use_stdin () {
|
||||
}
|
||||
if (l>0)
|
||||
rax (buf, l, 0);
|
||||
free (buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user