Skip to content

scllib.c: have an error in code #56

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions