]> granicus.if.org Git - apache/commitdiff
* modules/dav/fs/lock.c (dav_size_indirect): Fix indirect lock record
authorJoe Orton <jorton@apache.org>
Sun, 12 Sep 2004 22:14:57 +0000 (22:14 +0000)
committerJoe Orton <jorton@apache.org>
Sun, 12 Sep 2004 22:14:57 +0000 (22:14 +0000)
handling on 64-bit platforms: use correct size of apr_datum_t.dsize
field.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105099 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/lock.c

index 9331174ef4c1e510b78d561598a2cfb37109d016..ba79f5e22150f39a69a286f86568e11086465246 100644 (file)
@@ -66,7 +66,7 @@
 **    INDIRECT LOCK:   [char      (DAV_LOCK_INDIRECT),
 **                     apr_uuid_t locktoken,
 **                     time_t     expires,
-**                     int        key_size,
+**                     apr_size_t key_size,
 **                     char[]     key]
 **       The key is to the collection lock that resulted in this indirect lock
 */
@@ -157,7 +157,7 @@ typedef struct dav_lock_indirect
 /* Stored indirect lock info - lock token and apr_datum_t */
 #define dav_size_indirect(a)   (1 + sizeof(apr_uuid_t) \
                                 + sizeof(time_t) \
-                                + sizeof(int) + (a)->key.dsize)
+                                + sizeof((a)->key.dsize) + (a)->key.dsize)
 
 /*
 ** The lockdb structure.