mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-07 20:30:21 +01:00
Fix warning: "pointer targets in passing argument 3 of 'CryptGenRandom' differ in signedness [-Wpointer-sign]".
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93069 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
5feb0223a2
commit
8d83e4da18
1 changed files with 2 additions and 2 deletions
|
|
@ -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_udata_len (str, old_len, n_bytes);
|
||||
|
||||
if (!CryptAcquireContext (&hprov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue