[Pkg-privacy-commits] [pidgin-otr] 141/255: Use the new #defined value of the length of a human-readable fingerprint

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:51:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch experimental
in repository pidgin-otr.

commit 5c7adcfd2b179f75d3b110e11f9f3923863c9910
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date:   Thu Jul 19 11:06:52 2012 -0400

    Use the new #defined value of the length of a human-readable fingerprint
---
 gtk-dialog.c | 6 ++++--
 gtk-ui.c     | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/gtk-dialog.c b/gtk-dialog.c
index 9047102..b02fdaa 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -642,7 +642,8 @@ static void add_to_vbox_init_two_way_auth(GtkWidget *vbox,
 
 static void add_to_vbox_verify_fingerprint(GtkWidget *vbox,
 	ConnContext *context, SmpResponsePair* smppair) {
-    char our_hash[45], their_hash[45];
+    char our_hash[OTRL_PRIVKEY_FPRINT_HUMAN_LEN],
+	    their_hash[OTRL_PRIVKEY_FPRINT_HUMAN_LEN];
     GtkWidget *label;
     char *label_text;
     struct vrfy_fingerprint_data *vfd;
@@ -1378,7 +1379,8 @@ static void add_vrfy_fingerprint(GtkWidget *vbox, void *data)
 static void verify_fingerprint(GtkWindow *parent, Fingerprint *fprint)
 {
     GtkWidget *dialog;
-    char our_hash[45], their_hash[45];
+    char our_hash[OTRL_PRIVKEY_FPRINT_HUMAN_LEN],
+	    their_hash[OTRL_PRIVKEY_FPRINT_HUMAN_LEN];
     char *primary;
     char *secondary;
     struct vrfy_fingerprint_data *vfd;
diff --git a/gtk-ui.c b/gtk-ui.c
index 1d33172..6088b06 100644
--- a/gtk-ui.c
+++ b/gtk-ui.c
@@ -93,7 +93,7 @@ static void account_menu_changed_cb(GtkWidget *item, PurpleAccount *account,
     char *fingerprint;
 
     if (account) {
-	char fingerprint_buf[45];
+	char fingerprint_buf[OTRL_PRIVKEY_FPRINT_HUMAN_LEN];
 	accountname = purple_account_get_username(account);
 	protocol = purple_account_get_protocol_id(account);
 	fingerprint = otrl_privkey_fingerprint(otrg_plugin_userstate,
@@ -149,7 +149,7 @@ static void clist_all_unselected(void)
 static void otrg_gtk_ui_update_keylist(void)
 {
     gchar *titles[5];
-    char hash[45];
+    char hash[OTRL_PRIVKEY_FPRINT_HUMAN_LEN];
     ConnContext * context;
     Fingerprint * fingerprint;
     int selected_row = -1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pidgin-otr.git



More information about the Pkg-privacy-commits mailing list