Introduce strlcat() instead of strcat(), and replace all sizeof() of buffers inside structures with constants where possible, to avoid bugs caused by reading the size of a pointer instead of the size of the buffer it points to.
This commit is contained in:
@@ -148,6 +148,7 @@ opts_t opts_parse(int argc, char **argv)
|
||||
/* "-s @" is valid, so allow it. */
|
||||
if ('@' == *optarg)
|
||||
break;
|
||||
/* falls through */
|
||||
case 'A':
|
||||
case 'w':
|
||||
case 'H':
|
||||
|
||||
Reference in New Issue
Block a user