Skip to content

scllib.c: have an error in code #56

@hengwu0

Description

@hengwu0

Container platform

No response

Version

master version

OS version of the container image

No response

Bugzilla, Jira

No response

Description

The source code here has an error:

scl-utils/src/scllib.c

Lines 112 to 113 in 1b78a48

if (!strncmp(SCL_MODULES_PATH, enabled_collections[i],
sizeof(SCL_MODULES_PATH - 1))){

It should not calc in sizeof(). I think the real code should be:

if (!strncmp(SCL_MODULES_PATH, enabled_collections[i],
                sizeof(SCL_MODULES_PATH) - 1)){

Reproducer

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions