We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Read buffer in INI::Is_Declaration_Of_Type is written on to accommodate the parsing.
INI::Is_Declaration_Of_Type
char c = buffer[block_type_len]; buffer[block_type_len] = 0; if (strcasecmp(block_type.Str(), buffer) != 0) { ret = false; } buffer[block_type_len] = c; buffer += block_type_len;
The better approach is to compare with a max length.
The text was updated successfully, but these errors were encountered:
A few lines below there is
while (strlen(buffer) != 0) { ret = ret && isspace(*buffer); buffer++; }
This is poor algorithm. There is no need to strlen() after incrementing position by one.
Sorry, something went wrong.
Same in INI::Is_End_Of_Block function.
INI::Is_End_Of_Block
No branches or pull requests
Read buffer in
INI::Is_Declaration_Of_Type
is written on to accommodate the parsing.The better approach is to compare with a max length.
The text was updated successfully, but these errors were encountered: