Skip to content

Replace manual whitespace loops in is_exit_meta_command with strspn #215

Description

@python-processing-unit

Problem

src/main.c:133-135,140-142 uses manual while loops to skip whitespace characters. strspn(p, " \t\r\n") does this in one call.

Fix

Replace both loops with p += strspn(p, " \t\r\n");.

Reported by Kilo Code (automated audit tool), not a human reviewer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    patchRequires a patch version change.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions