Commit 484442e9 authored by Federico Vaga's avatar Federico Vaga

Merge branch 'release/v1.1.4'

parents f3adcab3 bdb8d426
Pipeline #3253 failed with stages
in 0 seconds
......@@ -248,7 +248,7 @@ static int __fmc_carrier_type_get(struct fmc_carrier *carr,
if ((size_t)ret >= sizeof(carrier_type))
ret = sizeof(carrier_type) - 1;
carrier_type[ret] = '\0';
strncpy(buf, basename(carrier_type), max_len);
strncpy(buf, basename(carrier_type), max_len - 1);
return 0;
err_link:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment