Replace asprintf() by xasprintf().
[tinc] / src / solaris / device.c
index 748b545..f76bbbd 100644 (file)
@@ -100,7 +100,7 @@ bool setup_device(void)
        }
 
        if(!get_config_string(lookup_config(config_tree, "Interface"), &iface))
-               asprintf(&iface, "tun%d", ppa);
+               xasprintf(&iface, "tun%d", ppa);
 
        device_info = _("Solaris tun device");