mirror of
https://github.com/0intro/wmii
synced 2025-01-21 01:22:07 +03:00
prevent an infinite loop in wmiipsel
This commit is contained in:
parent
4628fa8259
commit
381e8c7a9c
@ -32,7 +32,7 @@ main(int argc, char **argv)
|
||||
} else
|
||||
usage();
|
||||
}
|
||||
len = offset = 0;
|
||||
len = offset = remain = 0;
|
||||
do {
|
||||
data = blitz_getselection(offset, &len, &remain);
|
||||
for(i = 0; i < len; i++)
|
||||
@ -41,6 +41,7 @@ main(int argc, char **argv)
|
||||
free(data);
|
||||
}
|
||||
while(remain);
|
||||
putchar('\n');
|
||||
if(offset)
|
||||
putchar('\n');
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user