aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-method-iban.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-method-iban.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-method-iban.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-method-iban.c b/src/anastasis/anastasis-gtk_handle-method-iban.c
index 104b4c3..f0487e1 100644
--- a/src/anastasis/anastasis-gtk_handle-method-iban.c
+++ b/src/anastasis/anastasis-gtk_handle-method-iban.c
@@ -45,7 +45,8 @@ mask_iban (const char *iban)
GNUNET_assert (slen > 5);
GNUNET_asprintf (&result,
- "%2s...%s",
+ "%.*s...%s",
+ (int) 5,
iban,
&iban[slen - 5]);
return result;
@@ -108,8 +109,8 @@ anastasis_gtk_b_iban_dialog_response_cb (GtkDialog *dialog,
void
-anastasis_gtk_b_iban_dialog_mailaddress_entry_changed_cb (GtkEntry *entry,
- gpointer user_data)
+anastasis_gtk_b_iban_dialog_iban_entry_changed_cb (GtkEntry *entry,
+ gpointer user_data)
{
GtkBuilder *builder = GTK_BUILDER (user_data);
GtkEntry *q;
@@ -117,7 +118,7 @@ anastasis_gtk_b_iban_dialog_mailaddress_entry_changed_cb (GtkEntry *entry,
char *err;
q = GTK_ENTRY (gtk_builder_get_object (builder,
- "anastasis_gtk_b_iban_dialog_mailaddress_entry"));
+ "anastasis_gtk_b_iban_dialog_iban_entry"));
qs = gtk_entry_get_text (q);
err = TALER_iban_validate (qs);
gtk_widget_set_sensitive (