projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5feb022
)
Fix warning: "pointer targets in passing argument 3 of 'CryptGenRandom' differ in...
author
Ralf Habacker
<ralf.habacker@freenet.de>
Mon, 23 Nov 2015 23:13:47 +0000
(
00:13
+0100)
committer
Ralf Habacker
<ralf.habacker@freenet.de>
Tue, 24 Nov 2015 11:27:42 +0000
(12:27 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93069
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-sysdeps-win.c
patch
|
blob
|
history
diff --git
a/dbus/dbus-sysdeps-win.c
b/dbus/dbus-sysdeps-win.c
index
6629894
..
4ad6ff1
100644
(file)
--- a/
dbus/dbus-sysdeps-win.c
+++ b/
dbus/dbus-sysdeps-win.c
@@
-2271,7
+2271,7
@@
_dbus_generate_random_bytes (DBusString *str,
DBusError *error)
{
int old_len;
- char *p;
+
unsigned
char *p;
HCRYPTPROV hprov;
old_len = _dbus_string_get_length (str);
@@
-2282,7
+2282,7
@@
_dbus_generate_random_bytes (DBusString *str,
return FALSE;
}
- p = _dbus_string_get_data_len (str, old_len, n_bytes);
+ p = _dbus_string_get_
u
data_len (str, old_len, n_bytes);
if (!CryptAcquireContext (&hprov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
{