projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edab5be
)
Remove use of HOST_NAME_MAX, not portable (#40)
author
Marko Kreen
<markokr@gmail.com>
Wed, 8 Apr 2015 10:27:12 +0000
(13:27 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 8 Apr 2015 10:27:12 +0000
(13:27 +0300)
src/util.c
patch
|
blob
|
blame
|
history
diff --git
a/src/util.c
b/src/util.c
index 8b5ebeeaa758d62481fc09223cebf5fabe41f6b8..9fc1686ed187bbdfe14b08aac4732ec783fe125c 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-414,7
+414,7
@@
const char *pga_str(const PgAddr *a, char *dst, int dstlen)
static const char *cached_hostname(void)
{
- static char cache[
HOST_NAME_MAX + 1
];
+ static char cache[
256
];
int err;
if (cache[0] == 0) {