Skip to content

Strncat compile warning #9

@wcdanh2

Description

@wcdanh2

This code should be changed to compile without warnings.

| utils.c: In function 'get_all_hapd_conf_files':
| utils.c:1321:13: warning: 'strncat' specified bound depends on the length of the source argument [-Wstringop-overflow=]
| 1321 | strncat(conf_files, interfaces[i].hapd_conf_file, strlen(interfaces[i].hapd_conf_file));
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

https://github.com/Wi-FiQuickTrack/Wi-FiQuickTrack-ControlAppC/blame/a6bb580896cf8a985aba31cfc010a7fd11a9fc13/utils.c#L1321

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