Re: [PATCH 00/25] replace snprintf with strlcpy

2023-06-02 Thread Tyler Retzlaff
On Thu, Jun 01, 2023 at 08:00:41AM -0700, Stephen Hemminger wrote: > This patch series was generated by using the existing > Coccinelle script to find where snprintf() is used but > strlcpy() could be used instead. i guess the motivation here is strlcpy is safer to use than the portable snprintf?

[PATCH 00/25] replace snprintf with strlcpy

2023-06-01 Thread Stephen Hemminger
This patch series was generated by using the existing Coccinelle script to find where snprintf() is used but strlcpy() could be used instead. Manually replaced fixed some trigraphs and paren's where needed. Also one instance the whole temporary string copy was not needed at all. Stephen Hemminger