summaryrefslogtreecommitdiffstats
path: root/lib/parameter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parameter.c')
-rw-r--r--lib/parameter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parameter.c b/lib/parameter.c
index 656a6037c6..a754fb8a94 100644
--- a/lib/parameter.c
+++ b/lib/parameter.c
@@ -642,7 +642,7 @@ static const char *param_ip_get(struct device_d *dev, struct param_d *p)
}
free(p->value);
- p->value = xstrdup(ip_to_string(*pi->ip));
+ p->value = xasprintf("%pI4", pi->ip);
return p->value;
}