mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
strings: unbreak the build after r340746
Discussed with: oshogbo Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f218ac5087
commit
248b5d08b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340750
|
@ -350,7 +350,7 @@ find_strings(const char *name, off_t offset, off_t size)
|
|||
(void)fseeko(stdin, offset, SEEK_SET);
|
||||
cur_off = offset;
|
||||
start_off = 0;
|
||||
while (true) {
|
||||
for (;;) {
|
||||
if ((offset + size) && (cur_off >= offset + size))
|
||||
break;
|
||||
start_off = cur_off;
|
||||
|
@ -395,7 +395,7 @@ find_strings(const char *name, off_t offset, off_t size)
|
|||
}
|
||||
printf("%s", obuf);
|
||||
|
||||
while (true) {
|
||||
for (;;) {
|
||||
if ((offset + size) &&
|
||||
(cur_off >= offset + size))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue