change format of version history resource names

Tue, 26 Feb 2019 12:10:16 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 26 Feb 2019 12:10:16 +0100
changeset 516
39f5f17c3bc3
parent 515
2465dd550bb5
child 517
8531b63accae

change format of version history resource names

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Tue Feb 26 10:40:23 2019 +0100
+++ b/dav/sync.c	Tue Feb 26 12:10:16 2019 +0100
@@ -2110,7 +2110,7 @@
     dav_rand_bytes(name_prefix, 8);   
     char *pre = util_hexstr(name_prefix, 8);
     int64_t ts = (int64_t)time(NULL);
-    int w = snprintf(buf, len, "%s-%"PRId64"%c", pre, ts, '\0');
+    int w = snprintf(buf, len, "%"PRId64"-%s", ts, pre);
     free(pre);
     return w >= len;
 }

mercurial