jclehner / bcm2-utils

Utilities for Broadcom-based cable modems
GNU General Public License v3.0
147 stars 25 forks source link

Fix reading lines containing only spaces #4

Closed ljani closed 6 years ago

ljani commented 7 years ago

This commit fixes a false positive when parsing the second line of this block:

2169534304: 538977584  946632736  00000000  170226464 |   %08lx .....%s
2169534320: 538976288  538976288  538976288  538976288 |
2169534336: 536870912  628303219  541149216  538977584 |  ...%s%s AH   %0

EDIT: I guess I could've changed the original needle, but I'm playing it safe.

jclehner commented 6 years ago

Merged, thanks!