diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-03-07 14:09:28 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-03-12 10:15:59 +0000 |
commit | 07f1f5864204dfdf455067def863fcd20c8c6a26 (patch) | |
tree | b2d3869a468de9bce1405b394b832aa711865806 /src/plugins/cinterion/mm-modem-helpers-cinterion.c | |
parent | 311d6f389e74899bc1790928bb44e8361e411a1b (diff) |
modem-helpers: rework AT string quote operation and add unit tests
Rework the AT string quote operation to build the output with the
GString helper, instead of manually calculating how many bytes we'll
need in the output. It just makes it clearer.
Diffstat (limited to 'src/plugins/cinterion/mm-modem-helpers-cinterion.c')
-rw-r--r-- | src/plugins/cinterion/mm-modem-helpers-cinterion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cinterion/mm-modem-helpers-cinterion.c b/src/plugins/cinterion/mm-modem-helpers-cinterion.c index b17b0050..34116ac3 100644 --- a/src/plugins/cinterion/mm-modem-helpers-cinterion.c +++ b/src/plugins/cinterion/mm-modem-helpers-cinterion.c @@ -1855,8 +1855,8 @@ mm_cinterion_build_auth_string (gpointer log_object, return g_strdup_printf ("^SGAUTH=%u,%d", cid, encoded_auth); } - quoted_user = mm_port_serial_at_quote_string (user ? user : ""); - quoted_passwd = mm_port_serial_at_quote_string (passwd ? passwd : ""); + quoted_user = mm_at_quote_string (user ? user : ""); + quoted_passwd = mm_at_quote_string (passwd ? passwd : ""); if (modem_family == MM_CINTERION_MODEM_FAMILY_IMT) return g_strdup_printf ("^SGAUTH=%u,%d,%s,%s", |