diff options
| author | mbkma <[email protected]> | 2026-03-12 00:06:40 +0100 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-03-12 12:25:17 -0400 |
| commit | 102d91c0d9463424777f02134c0cf065c4278e67 (patch) | |
| tree | 734bfb8ec9b93e4f22fc8f6013a70e28c4c5ef65 /capplets | |
| parent | ba1d074ef791dbec2e014fdd0be7634887bbac56 (diff) | |
| download | mate-control-center-master.tar.bz2 mate-control-center-master.tar.xz | |
Diffstat (limited to 'capplets')
| -rw-r--r-- | capplets/about-me/mate-about-me-password.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index 6d739f6f..291538c0 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -582,7 +582,9 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi } else if (g_strrstr (str->str, "BAD PASSWORD") != NULL) { /* Actual error description from libpwquality is located in the first string */ msg = g_strdup("Password hasn't changed!"); - pdialog->ext_msg = g_strdup(g_strsplit(str->str, "\n", 2)[0]); + gchar **_parts = g_strsplit(str->str, "\n", 2); + pdialog->ext_msg = g_strdup(_parts[0]); + g_strfreev(_parts); stop_passwd(pdialog); } } @@ -600,7 +602,9 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi * for our new password. */ if (pdialog->ext_msg != NULL) { passdlg_clear(pdialog); - passdlg_set_status (pdialog, g_strconcat(msg, "\n", pdialog->ext_msg, NULL)); + gchar *_combined = g_strconcat(msg, "\n", pdialog->ext_msg, NULL); + passdlg_set_status (pdialog, _combined); + g_free (_combined); g_free (pdialog->ext_msg); } pdialog->backend_state = PASSWD_STATE_ERR; |
