-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No blockette 1000 in last record now working.
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fe8e803
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ms_detect() determines if a record is detected and, if possible, what the record length is. With these changes the routine assumes too much.
It is the caller of this routine that knows the context of the buffer. Knowing that there is no more data, therefore implying a record length, is a job for the caller. This is easily done when the return from ms_detect() is 0.