Commit 54c2e526 authored by Ian Goldberg's avatar Ian Goldberg
Browse files

Protected against a possible malicious translation problem

Thanks to Jacob Appelbaum for pointing it out!
parent 7f2a0a83
......@@ -669,7 +669,8 @@ static void add_to_vbox_verify_fingerprint(GtkWidget *vbox,
vfd = vrfy_fingerprint_data_new(fprint);
strcpy(our_hash, _("[none]"));
strncpy(our_hash, _("[none]"), 44);
our_hash[44] = '\0';
otrl_privkey_fingerprint(otrg_plugin_userstate, our_hash,
context->accountname, context->protocol);
......@@ -1394,7 +1395,8 @@ static void verify_fingerprint(GtkWindow *parent, Fingerprint *fprint)
context->username);
vfd = vrfy_fingerprint_data_new(fprint);
strcpy(our_hash, _("[none]"));
strncpy(our_hash, _("[none]"), 44);
our_hash[44] = '\0';
otrl_privkey_fingerprint(otrg_plugin_userstate, our_hash,
context->accountname, context->protocol);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment