mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fixed windows segfault
This commit is contained in:
parent
7631d38c4a
commit
1b0497cb0b
@ -464,8 +464,10 @@ R_API void r_cons_clear_line(int std_err) {
|
||||
} else {
|
||||
char white[1024];
|
||||
memset (&white, ' ', sizeof (white));
|
||||
if (I.columns < sizeof (white)) {
|
||||
if (I.columns > 0 && I.columns < sizeof(white)) {
|
||||
white[I.columns - 1] = 0;
|
||||
} else if (I.columns == 0) {
|
||||
white[0] = 0;
|
||||
} else {
|
||||
white[sizeof (white) - 1] = 0; // HACK
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user