Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix string truncation. #2056

Merged
merged 1 commit into from
Jul 22, 2023
Merged

Fix string truncation. #2056

merged 1 commit into from
Jul 22, 2023

Commits on Jul 22, 2023

  1. Fix string truncation.

    ndpi_main.c: In function ‘ndpi_load_ip_category’:
    ndpi_main.c:6598:3: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
     6598 |   strncpy(ipbuf, ip_address_and_mask, sizeof(ipbuf));
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Toni Uhlig <[email protected]>
    utoni committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    fc695f8 View commit details
    Browse the repository at this point in the history