now that gcc 11's static analyzer looks at array bounds in arguments

like "char ip[4]", let's be more strict about that
This commit is contained in:
leitner
2021-04-27 17:39:42 +00:00
parent 07c3f0bf3d
commit 1217583e2b
22 changed files with 87 additions and 76 deletions

View File

@@ -16,7 +16,7 @@
#include "io_internal.h"
#endif
int socket_accept4(int s,char *ip,uint16 *port) {
int socket_accept4(int s,char ip[4],uint16 *port) {
struct sockaddr_in si;
socklen_t len = sizeof si;
int fd;