Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plugins
pidgin-otr
Commits
54c2e526
Commit
54c2e526
authored
Jun 22, 2012
by
Ian Goldberg
Browse files
Protected against a possible malicious translation problem
Thanks to Jacob Appelbaum for pointing it out!
parent
7f2a0a83
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk-dialog.c
View file @
54c2e526
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment