Skip to content

Properly check against errors against fwrite#449

Merged
millert merged 1 commit intosudo-project:mainfrom
SiliconA-Z:fwrite
Jun 18, 2025
Merged

Properly check against errors against fwrite#449
millert merged 1 commit intosudo-project:mainfrom
SiliconA-Z:fwrite

Conversation

@SiliconA-Z
Copy link
Copy Markdown
Contributor

fwrite is not the same as write; you have to explicitly compare against the length to detect errors, and sometimes number of items is mistaken for length.

@SiliconA-Z SiliconA-Z force-pushed the fwrite branch 4 times, most recently from 77c5390 to ee5b998 Compare June 17, 2025 17:59
@SiliconA-Z SiliconA-Z changed the title Properly check against errors with fwrite Properly check against errors against fwrite Jun 17, 2025
fwrite is not the same as write; you have to explicitly compare against the length to detect errors, and sometimes number of items is mistaken for length.
Copy link
Copy Markdown
Collaborator

@millert millert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct, thanks!

@millert millert merged commit 5fad16b into sudo-project:main Jun 18, 2025
5 checks passed
@SiliconA-Z SiliconA-Z deleted the fwrite branch June 18, 2025 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants