Просмотр исходного кода

printing ipv6 addresses often needs more than a 32 byte buffer. THis could
causes a crash with sone ipv6 installations.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1135 fd59a12c-fef9-0310-b244-a6a79926bd2f

Patrick Caulfield 19 лет назад
Родитель
Сommit
5d7b5f7fdd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exec/totempg.c

+ 1 - 1
exec/totempg.c

@@ -1154,7 +1154,7 @@ int totempg_ifaces_get (
 char *totempg_ifaces_print (unsigned int nodeid)
 char *totempg_ifaces_print (unsigned int nodeid)
 {
 {
 	static char iface_string[256 * INTERFACE_MAX];
 	static char iface_string[256 * INTERFACE_MAX];
-	char one_iface[32];
+	char one_iface[64];
 	struct totem_ip_address interfaces[INTERFACE_MAX];
 	struct totem_ip_address interfaces[INTERFACE_MAX];
 	unsigned int iface_count;
 	unsigned int iface_count;
 	unsigned int i;
 	unsigned int i;