fixes signedness issue in get_random_name()

Tue, 26 Feb 2019 10:29:14 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 26 Feb 2019 10:29:14 +0100
changeset 513
893a659768b3
parent 512
3320a015a3bc
child 514
4b84437b2167

fixes signedness issue in get_random_name()

dav/sync.c file | annotate | diff | comparison | revisions
--- 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);

mercurial