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

Mavgen C: Use strncpy instead of memcpy to pack char[n] fields #922

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 14, 2024

  1. Mavgen C: Use strncpy instead of memcpy to pack char[n] fields

    Uses new macros mavlink_array_assign_[type] in place of direct calls to mav_array_memcpy.
    The 'char' version then uses strncpy, while others call mav_array_memcpy as before
    Update _mav_put_char_array function to use strncpy
    shancock884 committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    366ebe5 View commit details
    Browse the repository at this point in the history