Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STAT code, fixes & review comments by Serge. #32

Merged
merged 1 commit into from
Jan 17, 2024
Merged

STAT code, fixes & review comments by Serge. #32

merged 1 commit into from
Jan 17, 2024

Conversation

anjalidk
Copy link
Contributor

No description provided.

@anjalidk
Copy link
Contributor Author

anjalidk commented Nov 7, 2023 via email

@anjalidk
Copy link
Contributor Author

anjalidk commented Nov 27, 2023 via email

if (err != 0)
printf("err is %d\n",err);
st = &stats;
fp = fopen ("./stat_info.txt", "w");
Copy link
Member

Choose a reason for hiding this comment

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

You're not checking fopen() return value. I know it's just a test, but it just looks bad :(

char *cstr1 = cstr + 5;
while (*cstr1 != '\n') {
cstr1++;
bytes++;
Copy link
Member

Choose a reason for hiding this comment

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

Should probably check bytes against max size st->intr can support.

char *cstr1 = cstr + 8;
while (*cstr1 != '\n') {
cstr1++;
bytes++;
Copy link
Member

Choose a reason for hiding this comment

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

again, check bytes length.

@anjalidk
Copy link
Contributor Author

anjalidk commented Dec 14, 2023 via email

@anjalidk
Copy link
Contributor Author

Hi Serge, any update on this?

@hallyn
Copy link
Member

hallyn commented Jan 17, 2024

It looks fine to me - but tests are failling?

@anjalidk
Copy link
Contributor Author

anjalidk commented Jan 17, 2024 via email

@hallyn
Copy link
Member

hallyn commented Jan 17, 2024

Sure - but I approved it, does that not give you the ability to merge it?

@hallyn hallyn merged commit 18ad4c3 into main Jan 17, 2024
6 of 8 checks passed
@anjalidk
Copy link
Contributor Author

anjalidk commented Jan 18, 2024 via email

@hallyn
Copy link
Member

hallyn commented Jan 18, 2024

Didnt expect, but it as intended to be an option :)

@anjalidk anjalidk deleted the rev3 branch January 24, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants