{
int fd = -1, maxfd, i, clients[MAX_CLIENTS];
fd_set rfds = { 0 }; /* Avoid scan-build false report for FD_SET */
- char sockname[1024];
+ char sockname[100];
char *configfile = NULL;
bool foreground = false;
int optchar;
}
stats->started = time(NULL);
- snprintf(sockname, 1023, "%s/%s", config.sock_dir, KEYD_SOCKET);
+ snprintf(sockname, sizeof(sockname) - 1, "%s/%s",
+ config.sock_dir, KEYD_SOCKET);
fd = sock_init(sockname);
if (fd != -1) {
struct onak_hkp_dbctx {
struct onak_db_config *config; /* Our DB config info */
CURL *curl;
- char hkpbase[1024];
+ char hkpbase[512];
};
static int hkp_parse_url(struct onak_hkp_dbctx *privctx, const char *url)