diff options
Diffstat (limited to 'sys/geom/part/g_part_apm.c')
-rw-r--r-- | sys/geom/part/g_part_apm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/geom/part/g_part_apm.c b/sys/geom/part/g_part_apm.c index 66c0295..bb79e56 100644 --- a/sys/geom/part/g_part_apm.c +++ b/sys/geom/part/g_part_apm.c @@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$"); #include <sys/systm.h> #include <sys/sysctl.h> #include <geom/geom.h> +#include <geom/geom_int.h> #include <geom/part/g_part.h> #include "g_part_if.h" @@ -310,10 +311,14 @@ g_part_apm_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, /* confxml: partition entry information */ strncpy(u.name, entry->ent.ent_name, APM_ENT_NAMELEN); u.name[APM_ENT_NAMELEN] = '\0'; - sbuf_printf(sb, "%s<label>%s</label>\n", indent, u.name); + sbuf_printf(sb, "%s<label>", indent); + g_conf_printf_escaped(sb, "%s", u.name); + sbuf_printf(sb, "</label>\n"); strncpy(u.type, entry->ent.ent_type, APM_ENT_TYPELEN); u.type[APM_ENT_TYPELEN] = '\0'; - sbuf_printf(sb, "%s<rawtype>%s</rawtype>\n", indent, u.type); + sbuf_printf(sb, "%s<rawtype>", indent); + g_conf_printf_escaped(sb, "%s", u.type); + sbuf_printf(sb, "</rawtype>\n"); } else { /* confxml: scheme information */ } |