Skip to content

strncpy possibly not null-terminating #128

@CDKnightNASA

Description

@CDKnightNASA
/home/user/nasa/cFS/tools/cFS-GroundSystem/Subsystems/cmdUtil/cmdUtil.c:817:17: error: ‘strncpy’ specified bound 1024 equals destination size [-Werror=stringop-truncation]
                 strncpy(sbuf, &tail[1], sizeof(sbuf));

strncpy(sbuf, &tail[1], sizeof(sbuf));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions