summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2013-05-06 13:57:15 +0200
committerJiří Klimeš <jklimes@redhat.com>2013-05-06 14:00:10 +0200
commit4d048cc2d8a73c5c6c2158f7cbe9e38fb477bfa6 (patch)
tree1852e30ad39417ef2554f885003f9cef7734bccf
parent0a5f272c35980a41576743cfbc6d91f2a2da83b5 (diff)
downloadNetworkManager-4d048cc2d8a73c5c6c2158f7cbe9e38fb477bfa6.tar.gz
cli: fix displaying unknown flags/bands
-rw-r--r--cli/src/settings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/src/settings.c b/cli/src/settings.c
index 7857ee0e31..35563cebca 100644
--- a/cli/src/settings.c
+++ b/cli/src/settings.c
@@ -661,7 +661,7 @@ allowed_bands_to_string (guint32 bands)
g_string_append (band_str, _("WCDMA 3GPP UMTS 2600 MHz, "));
if (band_str->str[band_str->len-1] == '(')
- g_string_assign (band_str, _("unknown"));
+ g_string_append (band_str, _("unknown"));
else
g_string_truncate (band_str, band_str->len-2); /* chop off trailing ', ' */
@@ -689,7 +689,7 @@ vlan_flags_to_string (guint32 flags)
g_string_append (flag_str, _("LOOSE_BINDING, "));
if (flag_str->str[flag_str->len-1] == '(')
- g_string_assign (flag_str, _("unknown"));
+ g_string_append (flag_str, _("unknown"));
else
g_string_truncate (flag_str, flag_str->len-2); /* chop off trailing ', ' */
@@ -751,7 +751,7 @@ secret_flags_to_string (guint32 flags)
g_string_append (flag_str, _("not required, "));
if (flag_str->str[flag_str->len-1] == '(')
- g_string_assign (flag_str, _("unknown"));
+ g_string_append (flag_str, _("unknown"));
else
g_string_truncate (flag_str, flag_str->len-2); /* chop off trailing ', ' */