Skip to content
  • Thomas Haller's avatar
    platform: add and use nm_utils_ifname_cpy() helper · 0e90f1ba
    Thomas Haller authored
    Coverity complains rightly about "strncpy (dst, ifname, IFNAMSIZ)"
    because it might leave @dst non-NULL-terminated, in case @ifname
    is too long (which already would be a bug in the first place).
    
    Replace the strcpy() uses by a new helper nm_utils_ifname_cpy()
    that asserts against valid arguments.
    0e90f1ba