Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
92b3033c
...
92b3033c2c969e3499425a4159aaee1b13bb40a2
authored
2007-07-01 12:59:44 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(assoc_rehash): Fix an incorrect element size calculation.
1 parent
ccb7ad7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mailbox/assoc.c
mailbox/assoc.c
View file @
92b3033
...
...
@@ -97,7 +97,7 @@ assoc_rehash (mu_assoc_t assoc)
if
(
hash_num
>=
max_rehash
)
return
MU_ERR_BUFSPACE
;
new_tab
=
calloc
(
hash_size
[
hash_num
],
assoc
->
elsize
);
new_tab
=
calloc
(
hash_size
[
hash_num
],
ASSOC_ELEM_SIZE
(
assoc
)
);
assoc
->
tab
=
new_tab
;
if
(
old_tab
)
{
...
...
@@ -114,7 +114,7 @@ assoc_rehash (mu_assoc_t assoc)
if
(
rc
)
return
rc
;
newp
->
name
=
elt
->
name
;
memcpy
(
newp
->
data
,
elt
->
data
,
assoc
->
elsize
);
;
memcpy
(
newp
->
data
,
elt
->
data
,
assoc
->
elsize
);
}
}
free
(
old_tab
);
...
...
Please
register
or
sign in
to post a comment