Skip to content

Commit

Permalink
NetworkControl: align buffer end based on latest changes in thunder d…
Browse files Browse the repository at this point in the history
…ata element (#806)

Co-authored-by: Pierre Wielders <pierre@wielders.net>
  • Loading branch information
HaseenaSainul and pwielders authored Jun 27, 2024
1 parent b33c70b commit 3240b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NetworkControl/NetworkControlImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ namespace Plugin

} while ((index < file.Size()) && (offset != endMarker.length()));

end = index;
end = ((index != 0) && (index == file.Size())) ? index - 1 : index;
uint16_t reduction = end - start;

if ((reduction != 0) && ((file.Size() - end) != 0)) {
Expand Down

0 comments on commit 3240b71

Please sign in to comment.