mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Lower max CraftName length to avoid inadvertent data loss
This commit is contained in:
parent
60fe04a885
commit
07f882aed1
1 changed files with 1 additions and 1 deletions
|
@ -1469,7 +1469,7 @@ static void osdElementWarnings(osdElementParms_t *element)
|
||||||
}
|
}
|
||||||
#endif // USE_RX_LINK_QUALITY_INFO
|
#endif // USE_RX_LINK_QUALITY_INFO
|
||||||
}
|
}
|
||||||
strncpy(pilotConfigMutable()->name, element->buff, MAX_NAME_LENGTH);
|
strncpy(pilotConfigMutable()->name, element->buff, MAX_NAME_LENGTH - 1);
|
||||||
}
|
}
|
||||||
#endif // USE_CRAFTNAME_MSGS
|
#endif // USE_CRAFTNAME_MSGS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue