# HG changeset patch # User Mike Becker # Date 1551173354 -3600 # Node ID 893a659768b37d25e86f85ac1fa858c17af530d7 # Parent 3320a015a3bc688e6c02960f0be9a3482675dd29 fixes signedness issue in get_random_name() diff -r 3320a015a3bc -r 893a659768b3 dav/sync.c --- a/dav/sync.c Tue Feb 26 10:22:16 2019 +0100 +++ b/dav/sync.c Tue Feb 26 10:29:14 2019 +0100 @@ -2105,7 +2105,7 @@ } int gen_random_name(char *buf, size_t len) { - char name_prefix[8]; + unsigned char name_prefix[8]; memset(name_prefix, 0, 8); dav_rand_bytes(name_prefix, 8); char *pre = util_hexstr(name_prefix, 8);