]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1548 about Solaris SIGBUS with accurate mode backup
authorEric Bollengier <eric@baculasystems.com>
Mon, 4 Jan 2016 18:42:34 +0000 (19:42 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 6 Jan 2016 09:49:39 +0000 (10:49 +0100)
The memory structure was not aligned properly on sparc systems (8 bytes)

bacula/src/lib/htable.h

index 73c6eb6d9618d0c74aa69a4fece96cf866760e8e..a419b5a46870784628695ae608ceacbd14af2f05 100644 (file)
@@ -70,8 +70,8 @@ struct hlink {
 
 struct h_mem {
    struct h_mem *next;                /* next buffer */
-   char *mem;                         /* memory pointer */
-   int32_t rem;                       /* remaining bytes in big_buffer */
+   char   *mem;                       /* memory pointer */
+   int64_t rem;                       /* remaining bytes in big_buffer */
    char first[1];                     /* first byte */
 };