Signed-off-by: geraldo netto <geraldone...@gmail.com>
---
 modules/cloud-init/cloud-init.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/cloud-init/cloud-init.cc b/modules/cloud-init/cloud-init.cc
index 5e05c82..ddb3a3a 100644
--- a/modules/cloud-init/cloud-init.cc
+++ b/modules/cloud-init/cloud-init.cc
@@ -24,7 +24,7 @@ extern "C" void dhcp_renew(bool wait);
 // If hostname changes, try to propagate the change to DHCP server too.
 void set_hostname_renew_dhcp(std::string hostname) {
     if (hostname.length() > 0) {
-        char old_hostname[256] = "";
+        char old_hostname[65] = "";
         gethostname(old_hostname, sizeof(old_hostname));
         sethostname(hostname.c_str(), hostname.length());
         if (hostname != old_hostname) {
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to