summaryrefslogtreecommitdiff
path: root/net-im/jabberd/files/jabberd-1.4.4-xdb_file.c-rev1107.patch
blob: a66434974f1548ae5d21ea9cc339294a70e8b593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- xdb_file/xdb_file.c	2005/07/08 22:36:46	1106
+++ xdb_file/xdb_file.c	2005/07/11 14:23:27	1107
@@ -153,8 +153,8 @@
     
     /* generate a hash over the filename */
     bzero(hashedfilename, sizeof(hashedfilename));
-    bzero(digit01, sizeof(digit01));
-    bzero(digit23, sizeof(digit23));
+    bzero(digit01, sizeof(char[3]));
+    bzero(digit23, sizeof(char[3]));
     crc32_r(filename, hashedfilename);
     log_debug2(ZONE, LOGT_STORAGE, "hash of %s is %s", filename, hashedfilename);
     memcpy(digit01, hashedfilename+1, 2);