From b72b0ac110c5ac6db4c88a6a9896dd776fe8f8ec Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 2 Aug 2019 22:34:24 -0700 Subject: [PATCH] ircd::net: Use buffer size consts. --- ircd/net.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircd/net.cc b/ircd/net.cc index 6b1274e9d..158c58fd3 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -4333,7 +4333,7 @@ try } catch(const mods::unavailable &e) { - thread_local char buf[128]; + thread_local char buf[rfc1035::NAME_BUFSIZE]; log::dwarning { log, "Failed to put error for '%s' in DNS cache :%s", @@ -4361,7 +4361,7 @@ try } catch(const mods::unavailable &e) { - thread_local char buf[128]; + thread_local char buf[rfc1035::NAME_BUFSIZE]; log::dwarning { log, "Failed to put '%s' in DNS cache :%s", @@ -4395,7 +4395,7 @@ try } catch(const mods::unavailable &e) { - thread_local char buf[128]; + thread_local char buf[rfc1035::NAME_BUFSIZE]; log::dwarning { log, "Failed to get '%s' from DNS cache :%s",