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

rpt_uchameleon.c: Incorrect use of sizeof() #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkmer
Copy link
Collaborator

@mkmer mkmer commented Jan 28, 2025

This clearly should be strlen of the string.

sizeof(&expect) = 8
strlen(expect) = 9

I suppose it "works" because the count is always 13? or the first 8 characters always match.

apps/app_rpt/rpt_uchameleon.c Outdated Show resolved Hide resolved
@mkmer mkmer added code quality Improvments around code quality without functional changes bug Something isn't working labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code quality Improvments around code quality without functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants