Ensure that set_name_idx() doesn't exceed target bounds
[fio.git] / options.h
index bd97654b57e38cf05e85c53fe006c154f51f21e3..6805b314125a96778e44e8d222720b1346ff651b 100644 (file)
--- a/options.h
+++ b/options.h
@@ -6,7 +6,6 @@
 #include <string.h>
 #include "parse.h"
 #include "flist.h"
-#include "client.h"
 
 #define td_var_offset(var)     ((size_t) &((struct thread_options *)0)->var)
 
@@ -19,9 +18,9 @@ void del_opt_posval(const char *, const char *);
 struct thread_data;
 void fio_options_free(struct thread_data *);
 char *get_name_idx(char *, int);
-int set_name_idx(char *, char *, int);
+int set_name_idx(char *, size_t, char *, int);
 
-extern char client_sockaddr_str[INET6_ADDRSTRLEN];  /* used with --client option */
+extern char client_sockaddr_str[];  /* used with --client option */
 
 extern struct fio_option fio_options[FIO_MAX_OPTS];