common.c:4087:59: warning: '__builtin_snprintf' output may be truncated before
the last format character [-Wformat-truncation=]
snprintf(current_test_path, sizeof(current_test_path),
"%s/%s", dirname, dirp->d_name);
I get why there is the warning, why the code is defensive, and why it's
unlikely to be an issue. I don't know what the right approach is;
perhaps checking dirname and erroring out if it's > than the sizeof-64,
or something like that?
(not seeing this needs fixing, but I got only 4 warnings building)
_______________________________________________
Nut-upsdev mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev