Skip to content

Instantly share code, notes, and snippets.

@matsumotory
Created November 6, 2015 00:24
Show Gist options
  • Select an option

  • Save matsumotory/1ef9b14ac5908ebfb4f1 to your computer and use it in GitHub Desktop.

Select an option

Save matsumotory/1ef9b14ac5908ebfb4f1 to your computer and use it in GitHub Desktop.
--- scoreboard.h.orig 2014-07-15 04:55:04.000000000 +0900
+++ scoreboard.h 2015-10-16 00:06:11.265344540 +0900
@@ -37,6 +37,7 @@
#include "apr_portable.h"
#include "apr_shm.h"
#include "apr_optional.h"
+#include <netdb.h>
/* Scoreboard file, if there is one */
#ifndef DEFAULT_SCOREBOARD
@@ -114,7 +115,7 @@
#endif
char client[32]; /* Keep 'em small... */
char request[64]; /* We just want an idea... */
- char vhost[32]; /* What virtual host is being accessed? */
+ char vhost[NI_MAXHOST]; /* What virtual host is being accessed? */
};
typedef struct {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment