Repair a verified behavior in apache/nuttx.
Repair a verified behavior in apache/nuttx.: a task in OriGent-RL-Data (Harbor dataset). NuttX's libc stdio bounded formatted-output functions have regressed for truncated output. When a formatted result does not fit in the destination, snprintf and vsnprintf return the number of bytes actually…
The task
NuttX's libc stdio bounded formatted-output functions have regressed for truncated output. When a formatted result does not fit in the destination, `snprintf` and `vsnprintf` return the number of bytes actually stored instead of the number of bytes that would have been written to a sufficiently large destination.
Part of henryen/OriGent-RL-Data.